Options used:
tabWidth: 4
printWidth: 120
Before:
@Test
@Transactional
public void getAllCountries() throws Exception {
// Initialize the database
countryRepository.saveAndFlush(country);
// Get all the countryList
restCountryMockMvc.perform(get("/api/countries?sort=id,desc"))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.[*].id").value(hasItem(country.getId().intValue())))
.andExpect(jsonPath("$.[*].isoCode").value(hasItem(DEFAULT_ISO_CODE.toString())))
.andExpect(jsonPath("$.[*].label").value(hasItem(DEFAULT_LABEL.toString())))
.andExpect(jsonPath("$.[*].display").value(hasItem(DEFAULT_DISPLAY.booleanValue())))
.andExpect(jsonPath("$.[*].internationalDialingCode")
.value(hasItem(DEFAULT_INTERNATIONAL_DIALING_CODE.toString())));
}
After:
@Test
@Transactional
public void getAllCountries() throws Exception {
// Initialize the database
countryRepository.saveAndFlush(country);
// Get all the countryList
restCountryMockMvc.perform(
get("/api/countries?sort=id,desc")
).andExpect(status().isOk()).andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)).andExpect(jsonPath("$.[*].id").value(hasItem(country.getId().intValue()))).andExpect(jsonPath("$.[*].isoCode").value(hasItem(DEFAULT_ISO_CODE.toString()))).andExpect(jsonPath("$.[*].label").value(hasItem(DEFAULT_LABEL.toString()))).andExpect(jsonPath("$.[*].display").value(hasItem(DEFAULT_DISPLAY.booleanValue()))).andExpect(jsonPath("$.[*].internationalDialingCode").value(hasItem(DEFAULT_INTERNATIONAL_DIALING_CODE.toString())));
}
Options used:
tabWidth: 4
printWidth: 120
Before:
After: