bugfix test

mocked config configured
REL-BRANCH-PropertyToJavaGenerator-0.0.3
Markus Kreth 7 years ago
parent 46c2f64ad1
commit 03f8ffdcd2
  1. 1
      src/test/java/de/kreth/property2java/ConfigurationTest.java

@ -29,6 +29,7 @@ class ConfigurationTest {
when(config.outWriter(anyString())).thenCallRealMethod(); when(config.outWriter(anyString())).thenCallRealMethod();
when(config.getRootPath()).thenReturn(new File(".").toPath()); when(config.getRootPath()).thenReturn(new File(".").toPath());
when(config.mapFilenameToClassName(anyString())).thenCallRealMethod(); when(config.mapFilenameToClassName(anyString())).thenCallRealMethod();
when(config.outputCharset()).thenCallRealMethod();
Writer outWriter = config.outWriter("application.properties"); Writer outWriter = config.outWriter("application.properties");
assertTrue(outWriter instanceof FileWriter); assertTrue(outWriter instanceof FileWriter);

Loading…
Cancel
Save