use of org.incode.module.country.dom.impl.Country in project estatio by estatio.
the class CommunicationChannelOwner_newChannelContributions method default3NewPostal.
public State default3NewPostal() {
final Country country = default2NewPostal();
final List<State> statesInCountry = stateRepository.findStatesByCountry(country);
return statesInCountry.size() > 0 ? statesInCountry.get(0) : null;
}
use of org.incode.module.country.dom.impl.Country in project estatio by estatio.
the class EstatioApplicationTenancyRepositoryForLease_Test method propertyWith.
private Property propertyWith(String countryCode, String reference) {
Property property = new Property();
property.setReference(reference);
property.setCountry(new Country(countryCode, countryCode, countryCode));
return property;
}
use of org.incode.module.country.dom.impl.Country in project estatio by estatio.
the class EstatioApplicationTenancyRepositoryForLease_Test method country.
private static Country country(final String reference) {
Country country = new Country();
country.setReference(reference);
return country;
}
use of org.incode.module.country.dom.impl.Country in project estatio by estatio.
the class EstatioApplicationTenancyRepositoryForCountry_Test method testFindOrCreateCountryTenancy_whenExists.
@Test
public void testFindOrCreateCountryTenancy_whenExists() throws Exception {
// given
Country country = new Country();
country.setReference("ITA");
// when
ApplicationTenancy countryTenancy = estatioApplicationTenancyRepository.findOrCreateTenancyFor(country);
// then
assertThat(countryTenancy).isEqualTo(italy);
}
use of org.incode.module.country.dom.impl.Country in project estatio by estatio.
the class EstatioApplicationTenancyRepositoryForCountry_Test method testPathForCountry.
@Test
public void testPathForCountry() throws Exception {
// given
Country country = new Country("ITA", "IT", "ITALY");
// then
assertThat(estatioApplicationTenancyRepository.pathFor(country)).isEqualTo("/ITA");
}
Aggregations