Examples of Modification


Examples of org.onebusaway.transit_data_federation.model.modifications.Modification

    agency.setTimezone("America/New_York");
    agency.setUrl("http://agency.gov/");

    Mockito.when(_gtfsDao.getAllAgencies()).thenReturn(Arrays.asList(agency));

    Modification mod = new Modification();
    mod.setType(AgencyNarrative.class);
    mod.setId("1");
    mod.setProperty("disclaimer");
    mod.setValue("Use at your own risk.");

    _modifications.setModifications(Arrays.asList(mod));

    _task.generateAgencyNarratives(_provider);

    AgencyNarrative narrative = _provider.getNarrativeForAgencyId("1");
    assertEquals(mod.getValue(), narrative.getDisclaimer());
    assertEquals(agency.getLang(), narrative.getLang());
    assertEquals(agency.getName(), narrative.getName());
    assertEquals(agency.getPhone(), narrative.getPhone());
    assertEquals(agency.getTimezone(), narrative.getTimezone());
    assertEquals(agency.getUrl(), narrative.getUrl());
View Full Code Here

Examples of org.outerj.daisy.diff.html.modification.Modification

  private Modification modification;

  public TextNode(TagNode parent, String s) {
    super(parent);
    this.modification = new Modification(ModificationType.NONE,
        ModificationType.NONE);
    this.s = s;
  }
View Full Code Here

Examples of urban.kappa.Modification

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.MODIFICATION:
      {
        Modification modification = (Modification)theEObject;
        T result = caseModification(modification);
        if (result == null) result = caseLine(modification);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of urban.model.Modification

  @Test
  public void testModification()  throws RecognitionException {
    String expected = "%mod: $T > 1.0 do \"foo\" := 5.0\n";
    UrbanParser parser = new UrbanParser(expected);
    Modification line = (Modification) parser.line();
    assertEquals(expected, line.toString());
  }
View Full Code Here

Examples of urban.urban.Modification

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.MODIFICATION:
      {
        Modification modification = (Modification)theEObject;
        T result = caseModification(modification);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.CONCENTRATION:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.