@Test public void testHasZipCode() { Location location = new Location(null , "90210", null); Assert.assertFalse(location.hasCity()); Assert.assertTrue(location.hasZipCode()); Assert.assertFalse(location.hasCoordinate()); }
public boolean hasZipCode() { return isNotEmpty(zipCode); }
Location { public boolean hasZipCode() { return isNotEmpty(zipCode); } }
Location { public boolean hasZipCode() { return isNotEmpty(zipCode); } @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 boolean hasZipCode() { return isNotEmpty(zipCode); } @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 boolean hasZipCode() { return isNotEmpty(zipCode); } @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; }