Examples of Place


Examples of net.mindengine.galen.specs.reader.Place

    }
   
    @Test(dependsOnMethods = BASE_TEST)
    public void shouldStore_lineNumber_inSpecs() {
        List<PageSection> sections = pageSpec.getSections();
        Place place = sections.get(0).getObjects().get(0).getSpecs().get(0).getPlace();
        assertThat(place.getFilePath(), endsWith("/specs.txt"));
        assertThat(place.getLineNumber(), is(18));
       
        place = sections.get(1).getObjects().get(0).getSpecs().get(0).getPlace();
        assertThat(place.getFilePath(), endsWith("/specs.txt"));
        assertThat(place.getLineNumber(), is(24));
    }
View Full Code Here

Examples of net.mindengine.galen.specs.reader.Place

        String line = bufferedReader.readLine();

        int lineNumber = 1;
        try {
            while(line != null) {
                lineProcessor.processLine(line, varsContext, new Place(fileLocation, lineNumber));
                line = bufferedReader.readLine();
                lineNumber++;
            }
        }
        catch (Exception exception) {
View Full Code Here

Examples of net.mindengine.galen.specs.reader.Place

           
            validationListener.onObject(pageRunner, pageValidation, "objectA1"); {
                validationListener.onSpecError(pageRunner, pageValidation,
                        "objectA1",
                        new SpecInside("other-object", asList(new Location(exact(10), asList(LEFT)))).withOriginalText("inside: other-object 10px left")
                            .withPlace(new Place("specs.spec", 12)),
                        new ValidationError(asList(new ErrorArea(new Rect(10, 10, 100, 50), "objectA1")), asList("objectA1 is not inside other-object")));
               
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectA1", new SpecWidth(between(10, 20)).withOriginalText("width: 10 to 20px").withPlace(new Place("specs.spec", 12)));
            }
            validationListener.onAfterObject(pageRunner, pageValidation, "objectA1");
           
            validationListener.onObject(pageRunner, pageValidation, "objectA2"); {
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectA2", new SpecWidth(between(10, 20)).withOriginalText("width: 10 to 20px").withPlace(new Place("specs.spec", 12)));
                validationListener.onSpecError(pageRunner, pageValidation,
                        "objectA2",
                        new SpecWidth(exact(10)).withOriginalText("width: 10px")
                            .withPlace(new Place("specs.spec", 12)),
                        new ValidationError(asList(new ErrorArea(new Rect(200, 300, 50, 30), "objectA2")), asList("objectA2 width is 20px instead of 10px")));

                validationListener.onSpecError(pageRunner, pageValidation,
                        "objectA2",
                        new SpecText(SpecText.Type.IS, "Login").withOriginalText("text is: Login")
                                .withPlace(new Place("specs.spec", 12))
                                .withOnlyWarn(true),
                        new ValidationError(asList(new ErrorArea(new Rect(200, 300, 50, 30), "objectA2")), asList("objectA2 text is \"Logout\" instead of \"Login\"")));
            }
            validationListener.onAfterObject(pageRunner, pageValidation, "objectA2");
           
            validationListener.onAfterSection(pageRunner, pageValidation, section1);
           
            PageSection section2 = sectionWithName("some section 2");
            validationListener.onBeforeSection(pageRunner, pageValidation, section2);
           
            validationListener.onObject(pageRunner, pageValidation, "objectA1"); {
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectA1", new SpecHeight(between(10, 20)).withOriginalText("height: 10 to 20px").withPlace(new Place("specs.spec", 12)));
               
                //Doing sub-objects call
                {
                    validationListener.onObject(pageRunner, pageValidation, "sub-objectA1"); {
                        validationListener.onSpecSuccess(pageRunner, pageValidation, "sub-objectA1", new SpecHeight(between(10, 20)).withOriginalText("height: 10 to 20px").withPlace(new Place("specs.spec", 12)));
                        validationListener.onSpecError(pageRunner, pageValidation,
                                "sub-objectA1",
                                new SpecWidth(exact(10)).withOriginalText("width: 10px")
                                    .withPlace(new Place("specs.spec", 12)),
                                new ValidationError(asList(new ErrorArea(new Rect(200, 300, 50, 30), "sub-objectA1")), asList("sub-objectA1 width is 20px instead of 10px")));
                    }
                    validationListener.onAfterObject(pageRunner, pageValidation, "sub-objectA1");
                }
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectA1", new SpecHeight(between(10, 20)).withOriginalText("component: some-component.spec").withPlace(new Place("specs.spec", 12)));
            }
            validationListener.onAfterObject(pageRunner, pageValidation, "objectA1");
           
            validationListener.onAfterSection(pageRunner, pageValidation, section2);
       
        }
        validationListener.onAfterPageAction(pageRunner, action);
       
       
       
        validationListener.onBeforePageAction(pageRunner, action);
        {
            PageSection section1 = sectionWithName("some section 1");
            validationListener.onBeforeSection(pageRunner, pageValidation, section1);
           
            validationListener.onObject(pageRunner, pageValidation, "objectB1"); {
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectB1", new SpecWidth(between(10, 20)).withOriginalText("width: 10 to 20px").withPlace(new Place("specs.spec", 12)));
               
                validationListener.onSpecError(pageRunner, pageValidation,
                        "objectB1",
                        new SpecInside("other-object", asList(new Location(exact(10), asList(LEFT)))).withOriginalText("inside: other-object 10px left")
                            .withPlace(new Place("specs.spec", 12)),
                        new ValidationError(asList(new ErrorArea(new Rect(10, 10, 100, 50), "objectB1")), asList("objectB1 is not inside other-object", "second error message with <xml> &tags"))
                            .withImageComparisonSample(new Rect(20, 30, 100, 40), "imgs/button-sample-correct.png", Rainbow4J.loadImage(comparisonMapImagePath)));
            }
            validationListener.onAfterObject(pageRunner, pageValidation, "objectB1");
           
            validationListener.onObject(pageRunner, pageValidation, "objectB2"); {
                validationListener.onSpecSuccess(pageRunner, pageValidation, "objectB2", new SpecHeight(exact(100)).withOriginalText("height: 100px").withPlace(new Place("specs.spec", 12)));
            }
            validationListener.onAfterObject(pageRunner, pageValidation, "objectB2");
           
            validationListener.onGlobalError(pageRunner, new FakeException("Some exception here"));
           
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.extended.Place

        super(new PlaceDMO(mods), org.dmd.mvw.tools.mvwgenerator.generated.MvwSchemaAG._Place);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:491)
    public Place getModificationRecorder(){
        Place rc = new Place();
        rc.setPlaceName(getPlaceName());
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.extended.Place

    public PlaceDMW(PlaceDMO obj) {
        super(obj, org.dmd.mvw.tools.mvwgenerator.generated.MvwSchemaAG._Place);
    }

    public Place cloneIt() {
        Place rc = new Place();
        rc.setDmcObject(getDMO().cloneIt());
        return(rc);
    }
View Full Code Here

Examples of org.folg.places.standardize.Place

      Map<String,MatchCount> matchCounts = new TreeMap<String, MatchCount>();

      // standardize all places + calculate matchCounts
      while (reader.ready()) {
         String nextLine = reader.readLine();
         Place p = standardizer.standardize(nextLine);
         if (p != null) {
            int level = p.getLevel();
            int countryId = p.getCountryId();
            String fullName = p.getFullName();
            int pos = fullName.lastIndexOf(",");
            String countryName;
            if (pos >= 0) {
               countryName = fullName.substring(pos+1).trim();
            }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.control.Place

  @Override
  public void onSuccess(JsArray<Placemark> placemarks) {

    for (int i = 0; i < placemarks.length(); i++) {
      Placemark mark = placemarks.get(i);
      Place place = getPlacemarkAsPlace(mark);
      _addresses.add(place);
      System.out.println("address=" + place);
    }

    _addressResultsReceived = true;
View Full Code Here

Examples of org.opentripplanner.api.model.Place

            startName = tripStartVertex.getLabel();
        }
        if (endName == null) {
            endName = tripEndVertex.getLabel();
        }
        Place from = new Place(tripStartVertex.getX(), tripStartVertex.getY(), startName);
        Place to = new Place(tripEndVertex.getX(), tripEndVertex.getY(), endName);

        from.orig = request.from.name;
        to.orig = request.to.name;

        TripPlan plan = new TripPlan(from, to, request.getDateTime());
View Full Code Here

Examples of reserv.objects.Place

            placesReserved.add(reserv.getPlace());
        }
       
        for (int i=0; i<100; i++)
        {
            Place p = new Place();
            if ( placesReserved.contains(i))
            {
                p.setReservedPlace(true);       
                p.setReservation(reservationList.get(placesReserved.lastIndexOf(i)));
            }
            else
            {
                Reservation r = new Reservation();
                r.setPlace(i);
                p.setReservation(r);
            }
            placesList.add(p);
        }
        return placesList;
    }
View Full Code Here

Examples of solysombra.domain.Place

  private void initialize(){
    //TODO METODO INITIALIZE
    PlaceList favoritos = new PlaceList();
    favoritos.setName("Default");
    favoritos.setDescription("Lista de favoritos por defecto");
    Place p1 = new Place(-2354.4654, 13.5984);
    p1.setEtiqueta("lugar1");
    Place p2 = new Place(589.15,354.446);
    p2.setEtiqueta("lugar2");
    favoritos.addPlace(p1);
    favoritos.addPlace(p2);
    repository.put(favoritos);
   
    PlaceList admin = new PlaceList();
    admin.setName("Admin");
    admin.setDescription("Lista de favoritos de Admin");
    Place p11 = new Place(4564.65846,153.21);
    p11.setEtiqueta("lugar_abandonado");
    Place p12 = new Place(-654654.5345,-65465.353543,Calendar.getInstance(),5);
    p12.setEtiqueta("playa_cristalina");
    Place p13 = new Place(45456.654,4564.654,Calendar.getInstance(),9);
    p13.setEtiqueta("monumento_importante");
    admin.addPlace(p11);
    admin.addPlace(p12);
    admin.addPlace(p13);
    repository.put(admin);
  }
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.