test_class.file: JavaElasticSearchExperiment/src/test/java/converter/LocalWeatherDataConverterTest.java
test_class.identifier: LocalWeatherDataConverterTest
test_case.body: @Test
      public void testConvert() throws Exception {
  
          // CSV Weather Data:
          csv.model.LocalWeatherData csvLocalWeatherData = new csv.model.LocalWeatherData();
  
          csvLocalWeatherData.setWban("WB1931");
          csvLocalWeatherData.setDate(LocalDate.of(2013, 1, 1));
          csvLocalWeatherData.setTime(LocalTime.of(0, 30, 0, 0));
          csvLocalWeatherData.setDryBulbCelsius(22.0f);
          csvLocalWeatherData.setSkyCondition("CLR");
          csvLocalWeatherData.setStationPressure(42.12f);
          csvLocalWeatherData.setWindSpeed(5.0f);
  
          // CSV Station Data:
          csv.model.Station csvStationData = new csv.model.Station();
          csvStationData.setWban("24028");
          csvStationData.setWmo("72566");
          csvStationData.setCallSign("BFF");
          csvStationData.setClimateDivisionCode("01");
          csvStationData.setClimateDivisionStateCode("25");
          csvStationData.setClimateDivisionStationCode("7665");
          csvStationData.setName("SCOTTSBLUFF");
          csvStationData.setState("NE");
          csvStationData.setLocation("WESTERN NE REGIONAL/HEILIG FIELD AP");
          csvStationData.setLatitude(41.8705f);
          csvStationData.setLongitude(-103.593f);
          csvStationData.setGroundHeight(3945);
          csvStationData.setStationHeight(3958);
          csvStationData.setBarometer(3949);
          csvStationData.setTimeZone(-7);
  
          // Elastic Geo Data:
          elastic.model.GeoLocation elasticGeoLocation = new elastic.model.GeoLocation();
  
          elasticGeoLocation.lat = csvStationData.getLatitude();
          elasticGeoLocation.lon = csvStationData.getLongitude();
  
          // Elastic Station Data:
          elastic.model.Station elasticStation = new elastic.model.Station();
  
          elasticStation.wban = csvStationData.getWban();
          elasticStation.name = csvStationData.getName();
          elasticStation.state = csvStationData.getState();
          elasticStation.location = csvStationData.getLocation();
          elasticStation.geoLocation = elasticGeoLocation;
  
          // Elastic Weather Data:
          elastic.model.LocalWeatherData elasticLocalWeatherData = new elastic.model.LocalWeatherData();
  
          elasticLocalWeatherData.windSpeed = csvLocalWeatherData.getWindSpeed();
          elasticLocalWeatherData.temperature = csvLocalWeatherData.getDryBulbCelsius();
          elasticLocalWeatherData.stationPressure = csvLocalWeatherData.getStationPressure();
          elasticLocalWeatherData.skyCondition = csvLocalWeatherData.getSkyCondition();
          elasticLocalWeatherData.dateTime = DateUtilities.from(csvLocalWeatherData.getDate(), csvLocalWeatherData.getTime(), ZoneOffset.ofHours(csvStationData.getTimeZone()));
          elasticLocalWeatherData.station = elasticStation;
  
          // Get the Converter Result:
          elastic.model.LocalWeatherData elasticConverterResult = LocalWeatherDataConverter.convert(csvLocalWeatherData, csvStationData);
  
          Assert.assertNotEquals(null, elasticConverterResult);
  
          Assert.assertEquals(elasticLocalWeatherData.windSpeed, elasticConverterResult.windSpeed);
          Assert.assertEquals(elasticLocalWeatherData.temperature, elasticConverterResult.temperature);
          Assert.assertEquals(elasticLocalWeatherData.stationPressure, elasticConverterResult.stationPressure);
          Assert.assertEquals(elasticLocalWeatherData.skyCondition, elasticConverterResult.skyCondition);
          Assert.assertEquals(elasticLocalWeatherData.dateTime, elasticConverterResult.dateTime);
  
          Assert.assertNotEquals(null, elasticConverterResult.station);
  
          Assert.assertEquals(elasticLocalWeatherData.station.wban, elasticConverterResult.station.wban);
          Assert.assertEquals(elasticLocalWeatherData.station.name, elasticConverterResult.station.name);
          Assert.assertEquals(elasticLocalWeatherData.station.state, elasticConverterResult.station.state);
          Assert.assertEquals(elasticLocalWeatherData.station.location, elasticConverterResult.station.location);
  
          Assert.assertNotEquals(null, elasticLocalWeatherData.station.geoLocation );
          Assert.assertEquals(elasticLocalWeatherData.station.geoLocation.lat, elasticLocalWeatherData.station.geoLocation.lat, 1e-10);
          Assert.assertEquals(elasticLocalWeatherData.station.geoLocation.lon, elasticLocalWeatherData.station.geoLocation.lon, 1e-10);
  
  
          // Elastic Weather Data:
  
  
      }
test_case.class_method_signature: LocalWeatherDataConverterTest.testConvert()
test_case.full_signature: @Test public void testConvert()
test_case.identifier: testConvert
test_case.invocations: setWban setDate of setTime of setDryBulbCelsius setSkyCondition setStationPressure setWindSpeed setWban setWmo setCallSign setClimateDivisionCode setClimateDivisionStateCode setClimateDivisionStationCode setName setState setLocation setLatitude setLongitude setGroundHeight setStationHeight setBarometer setTimeZone getLatitude getLongitude getWban getName getState getLocation getWindSpeed getDryBulbCelsius getStationPressure getSkyCondition from getDate getTime ofHours getTimeZone convert assertNotEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertNotEquals assertEquals assertEquals assertEquals assertEquals assertNotEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvert()
focal_class.file: JavaElasticSearchExperiment/src/main/java/converter/LocalWeatherDataConverter.java
focal_class.identifier: LocalWeatherDataConverter
focal_class.class_method_signature: LocalWeatherDataConverter.convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_class.full_signature: public static elastic.model.LocalWeatherData convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_class.return: elastic.model.LocalWeatherData
focal_class.signature: elastic.model.LocalWeatherData convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_class.class_method_signature: LocalWeatherDataConverter.convert(csv.model.Station csvStation)
focal_class.full_signature: public static elastic.model.Station convert(csv.model.Station csvStation)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (csv.model.Station csvStation)
focal_class.return: elastic.model.Station
focal_class.signature: elastic.model.Station convert(csv.model.Station csvStation)
focal_method.body: public static elastic.model.LocalWeatherData convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation) {
  
          elastic.model.LocalWeatherData elasticLocalWeatherData = new elastic.model.LocalWeatherData();
  
          elasticLocalWeatherData.dateTime = DateUtilities.from(csvLocalWeatherData.getDate(), csvLocalWeatherData.getTime(), ZoneOffset.ofHours(csvStation.getTimeZone()));
          elasticLocalWeatherData.skyCondition = csvLocalWeatherData.getSkyCondition();
          elasticLocalWeatherData.stationPressure = csvLocalWeatherData.getStationPressure();
          elasticLocalWeatherData.temperature = csvLocalWeatherData.getDryBulbCelsius();
          elasticLocalWeatherData.windSpeed = csvLocalWeatherData.getWindSpeed();
  
          // Convert the Station data:
          elasticLocalWeatherData.station = convert(csvStation);
  
          return elasticLocalWeatherData;
      }
focal_method.class_method_signature: LocalWeatherDataConverter.convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_method.full_signature: public static elastic.model.LocalWeatherData convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_method.identifier: convert
focal_method.invocations: from getDate getTime ofHours getTimeZone getSkyCondition getStationPressure getDryBulbCelsius getWindSpeed convert
focal_method.modifiers: public static
focal_method.parameters: (csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)
focal_method.return: elastic.model.LocalWeatherData
focal_method.signature: elastic.model.LocalWeatherData convert(csv.model.LocalWeatherData csvLocalWeatherData, csv.model.Station csvStation)