@Test public void testDefaultCountryCode() { Location location = new Location(null, null, erlangen); Assert.assertEquals("de", location.getCountryCode()); }
public String getCountryCode() { if (isNotEmpty(countryCode)) { return countryCode; } else { return DEFAULT_COUNTRY_CODE; } }
Location { public String getCountryCode() { if (isNotEmpty(countryCode)) { return countryCode; } else { return DEFAULT_COUNTRY_CODE; } } }
Location { public String getCountryCode() { if (isNotEmpty(countryCode)) { return countryCode; } else { return DEFAULT_COUNTRY_CODE; } } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); }
Location { public String getCountryCode() { if (isNotEmpty(countryCode)) { return countryCode; } else { return DEFAULT_COUNTRY_CODE; } } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); boolean hasCity(); String getCity(); boolean hasZipCode(); String getZipCode(); boolean hasCoordinate(); Coordinate getCoordinate(); String getCountryCode(); @Override boolean equals(Object o); @Override int hashCode(); }
Location { public String getCountryCode() { if (isNotEmpty(countryCode)) { return countryCode; } else { return DEFAULT_COUNTRY_CODE; } } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); boolean hasCity(); String getCity(); boolean hasZipCode(); String getZipCode(); boolean hasCoordinate(); Coordinate getCoordinate(); String getCountryCode(); @Override boolean equals(Object o); @Override int hashCode(); static final String UNKNOWN; }