BAEL-373: Improve/Upgrade existing Mockito articles to Mockito 2 (#2311)

* BAEL-373: Improve/Upgrade existing Mockito articles to Mockito 2

* Fix formatting issue with LoginControllerIntegrationTest
This commit is contained in:
Jose Carvajal
2017-07-30 00:29:25 +02:00
committed by KevinGilmore
parent 9f45d709db
commit f445a4d11b
10 changed files with 57 additions and 32 deletions

View File

@@ -63,6 +63,6 @@ public class MappedByteBufferUnitTest {
private Path getFileURIFromResources(String fileName) throws Exception {
ClassLoader classLoader = getClass().getClassLoader();
return Paths.get(classLoader.getResource(fileName).getPath());
return Paths.get(classLoader.getResource(fileName).toURI());
}
}

View File

@@ -179,7 +179,7 @@ public class JavaMoneyUnitTest {
MonetaryAmountFormat customFormat = MonetaryFormats.getAmountFormat(AmountFormatQueryBuilder
.of(Locale.US)
.set(CurrencyStyle.NAME)
.set("pattern", "00000.00 ¤")
.set("pattern", "00000.00 ¤")
.build());
String customFormatted = customFormat.format(oneDollar);