Changing to a More Stable Currency!
This commit is contained in:
parent
75b7419545
commit
cde01486d7
|
@ -27,7 +27,7 @@ public class CurrenciesControllerIntegrationTest {
|
||||||
.header("Accept-Language", "es-ES")
|
.header("Accept-Language", "es-ES")
|
||||||
.param("amount", "10032.5"))
|
.param("amount", "10032.5"))
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(content().string(containsString("10.032,50 €")));
|
.andExpect(content().string(containsString("10.032,50")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -42,10 +42,10 @@ public class CurrenciesControllerIntegrationTest {
|
||||||
@Test
|
@Test
|
||||||
public void whenCallCurrencyWithRomanianLocaleWithArrays_ThenReturnLocaleCurrencies() throws Exception {
|
public void whenCallCurrencyWithRomanianLocaleWithArrays_ThenReturnLocaleCurrencies() throws Exception {
|
||||||
mockMvc.perform(MockMvcRequestBuilders.get("/currency")
|
mockMvc.perform(MockMvcRequestBuilders.get("/currency")
|
||||||
.header("Accept-Language", "ro-RO")
|
.header("Accept-Language", "en-GB")
|
||||||
.param("amountList", "10", "20", "30"))
|
.param("amountList", "10", "20", "30"))
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(content().string(containsString("10,00 RON, 20,00 RON, 30,00 RON")));
|
.andExpect(content().string(containsString("£10.00, £20.00, £30.00")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue