Package org.growersnation.site.model.soil

Examples of org.growersnation.site.model.soil.SoilData


    List<TopsoilCarbonFields> topsoilCarbonFieldsList = topsoilCarbonDao.getTopsoilCarbonData(lat, lng);
    List<PHBulkDensityFields> phBulkDensityFieldsList = phBulkDensityDao.getPHBulkDensityData(lat, lng);
    List<SoilTextureFields> soilTextureFieldsList = soilTextureDao.getSoilTextureData(lat, lng);
    List<TopsoilNutrientsFields> topsoilNutrientsFieldsList = topsoilNutrientsDao.getTopsoilNutrientsData(lat, lng);

    SoilData soilData = new SoilData();
    soilData.setTopsoilCarbonFields(topsoilCarbonFieldsList);
    soilData.setPhBulkDensityFields(phBulkDensityFieldsList);
    soilData.setSoilTextureFields(soilTextureFieldsList);
    soilData.setTopsoilNutrientsFields(topsoilNutrientsFieldsList);

    return soilData;

  }
View Full Code Here


    testObject.setSoilTextureDao(soilTextureDao);
    testObject.setTopsoilCarbonDao(topsoilCarbonDao);
    testObject.setTopsoilNutrientsDao(topsoilNutrientsDao);

    // Act
    SoilData soilData = testObject.getSoilData("51.65,0.1",null);

    // Assert
    assertThat(soilData).isNotNull();

  }
View Full Code Here

public class SensorDataFaker {

  private static Faker faker = new Faker();

  public static SoilData createValidSoilData() {
    return new SoilData();
  }
View Full Code Here

    // Given
    SoilDataRepository soilDataRepository = new MongoSoilDataRepository(db);
    DefaultSoilDataService soilDataService = new DefaultSoilDataService(soilDataRepository);
    SoilDataReadService soilDataReadService = new MongoSoilDataReadService(db);

    SoilData soilData = SoilDataFaker.createValidSoilData();
    String objectId = soilDataService.save(soilData);

    // When
    long count = soilDataReadService.getNewestSoilDataCount();
View Full Code Here

    // Given
    SoilDataRepository soilDataRepository = new MongoSoilDataRepository(db);
    DefaultSoilDataService soilDataService = new DefaultSoilDataService(soilDataRepository);
    SoilDataReadService soilDataReadService = new MongoSoilDataReadService(db);

    SoilData soilData = SoilDataFaker.createValidSoilData();

    // When
    String createdObjectId = soilDataService.save(soilData);
    String updatedObjectId = soilDataService.save(soilData);
    long count = soilDataReadService.getNewestSoilDataCount();
View Full Code Here

TOP

Related Classes of org.growersnation.site.model.soil.SoilData

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.