@Test public void testGetCountry() { String fileName = "20200608_0730_2D1_UX0.uct"; EntsoeFileName ucteFileName = EntsoeFileName.parse(fileName); assertNotNull(ucteFileName.getGeographicalCode()); assertNull(ucteFileName.getCountry()); }
public String getCountry() { return geographicalCode != null && geographicalCode.getCountry() != null ? geographicalCode.getCountry().toString() : null; }
EntsoeFileName { public String getCountry() { return geographicalCode != null && geographicalCode.getCountry() != null ? geographicalCode.getCountry().toString() : null; } }
EntsoeFileName { public String getCountry() { return geographicalCode != null && geographicalCode.getCountry() != null ? geographicalCode.getCountry().toString() : null; } protected  EntsoeFileName(DateTime date, int forecastDistance, EntsoeGeographicalCode geographicalCode); }
EntsoeFileName { public String getCountry() { return geographicalCode != null && geographicalCode.getCountry() != null ? geographicalCode.getCountry().toString() : null; } protected  EntsoeFileName(DateTime date, int forecastDistance, EntsoeGeographicalCode geographicalCode); static EntsoeFileName parse(String str); DateTime getDate(); int getForecastDistance(); EntsoeGeographicalCode getGeographicalCode(); String getCountry(); }
EntsoeFileName { public String getCountry() { return geographicalCode != null && geographicalCode.getCountry() != null ? geographicalCode.getCountry().toString() : null; } protected  EntsoeFileName(DateTime date, int forecastDistance, EntsoeGeographicalCode geographicalCode); static EntsoeFileName parse(String str); DateTime getDate(); int getForecastDistance(); EntsoeGeographicalCode getGeographicalCode(); String getCountry();  }