Package org.growersnation.site.model.soil.texture

Examples of org.growersnation.site.model.soil.texture.SoilTextureFields


    InputStream is = SoilTextureDaoTest.class.getResourceAsStream("/fixtures/soil/texture/test-bgs-texture-clay-1.xml");
    FeatureInfoResponse fir = JAXB.unmarshal(is, FeatureInfoResponse.class);

    assertEquals(2,fir.getFields().size());

    SoilTextureFields fields = fir.getFields().get(0);

    assertEquals("Polygon",fields.getShape());

  }
View Full Code Here


  public static List<SoilTextureFields> createSoilTextureFields() {
    List<SoilTextureFields> soilTextureFieldsList = Lists.newArrayList();

    for (int i = 0; i < 2; i++) {

      SoilTextureFields soilTextureFields = new SoilTextureFields();

      soilTextureFields.setObjectId("######");
      soilTextureFields.setShape("Polygon");
      soilTextureFields.setGenPMLith("CLAY-SILT-SAND-GRAVEL");
      soilTextureFields.setEsbDescription("RIVERINE CLAY AND FLOODPLAIN SANDS AND GRAVEL");
      soilTextureFields.setGrainSize(null);
      soilTextureFields.setSoilGroup("ALL");
      soilTextureFields.setSoilDepth("DEEP");
      soilTextureFields.setCac03Rank(null);
      soilTextureFields.setPmmUID(faker.numerify("bgsn:PMMv6_pk_######"));
      soilTextureFields.setEsbCode(faker.numerify("###_###"));
      soilTextureFields.setLexRCS(faker.letterify("???-?????"));
      soilTextureFields.setShapeLength(faker.numerify("3###.####"));
      soilTextureFields.setShapeArea(faker.numerify("999###.######"));

      soilTextureFieldsList.add(soilTextureFields);
    }

    return soilTextureFieldsList;
View Full Code Here

  public static List<SoilTextureFields> createSoilTextureFields() {
    List<SoilTextureFields> soilTextureFieldsList = Lists.newArrayList();

    for (int i = 0; i < 2; i++) {

      SoilTextureFields soilTextureFields = new SoilTextureFields();

      soilTextureFields.setObjectId("######");
      soilTextureFields.setShape("Polygon");
      soilTextureFields.setGenPMLith("CLAY-SILT-SAND-GRAVEL");
      soilTextureFields.setEsbDescription("RIVERINE CLAY AND FLOODPLAIN SANDS AND GRAVEL");
      soilTextureFields.setGrainSize(null);
      soilTextureFields.setSoilGroup("ALL");
      soilTextureFields.setSoilDepth("DEEP");
      soilTextureFields.setCac03Rank(null);
      soilTextureFields.setPmmUID(faker.numerify("bgsn:PMMv6_pk_######"));
      soilTextureFields.setEsbCode(faker.numerify("###_###"));
      soilTextureFields.setLexRCS(faker.letterify("???-?????"));
      soilTextureFields.setShapeLength(faker.numerify("3###.####"));
      soilTextureFields.setShapeArea(faker.numerify("999###.######"));

      soilTextureFieldsList.add(soilTextureFields);
    }

    return soilTextureFieldsList;
View Full Code Here

TOP

Related Classes of org.growersnation.site.model.soil.texture.SoilTextureFields

Copyright © 2018 www.massapicom. 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.