WeatherData { public abstract boolean containsVar(WeatherVar variable); WeatherData(LocalDateTime dateTime, String[] data); abstract String[] combineValues(); abstract Reading getReading(WeatherVar whichVariable); abstract boolean containsVar(WeatherVar variable); String rightAlign(String str, int intendedLength); boolean checkQuality(String quality); boolean checkParsable(String str); void alignCommonVariables(); String parseValue(Reading reading); static final String ALLOWEDQUALITY; public String[] dataString; }
@Test public void testContainsVar() { assertTrue(wd.containsVar(WeatherVar.values()[0])); assertTrue(wd.containsVar(WeatherVar.values()[1])); assertTrue(wd.containsVar(WeatherVar.values()[2])); assertTrue(wd.containsVar(WeatherVar.values()[3])); assertTrue(wd.containsVar(WeatherVar.values()[4])); assertTrue(wd.containsVar(WeatherVar.values()[5])); assertTrue(wd.containsVar(WeatherVar.values()[6])); assertTrue(wd.containsVar(WeatherVar.values()[7])); assertTrue(wd.containsVar(WeatherVar.values()[8])); assertTrue(wd.containsVar(WeatherVar.values()[9])); assertTrue(wd.containsVar(WeatherVar.values()[10])); }