@Test public void getEmailAddresses_DefaultValueMustBeOverwrittenByValuesInPropertiesFile() { List<String> emailAddresses = demoApplicationProperties.getEmailAddresses(); assertThat(emailAddresses).containsOnly("shazin.sadakath@gmail.com", "shazin.swe@gmail.com"); }
public List<String> getEmailAddresses() { return emailAddresses; }
DemoApplicationProperties { public List<String> getEmailAddresses() { return emailAddresses; } }
DemoApplicationProperties { public List<String> getEmailAddresses() { return emailAddresses; }  }
DemoApplicationProperties { public List<String> getEmailAddresses() { return emailAddresses; }  Integer getNumber(); void setNumber(Integer number); String getTelephoneNumber(); void setTelephoneNumber(String telephoneNumber); List<String> getEmailAddresses(); void setEmailAddresses(List<String> emailAddresses); String getUsername(); void setUsername(String username); String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); Duration getWorkingTime(); void setWorkingTime(Duration workingTime); }
DemoApplicationProperties { public List<String> getEmailAddresses() { return emailAddresses; }  Integer getNumber(); void setNumber(Integer number); String getTelephoneNumber(); void setTelephoneNumber(String telephoneNumber); List<String> getEmailAddresses(); void setEmailAddresses(List<String> emailAddresses); String getUsername(); void setUsername(String username); String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); Duration getWorkingTime(); void setWorkingTime(Duration workingTime);  }