From 90dbf7edc76434a3f4f4d7c023b732827ead0e25 Mon Sep 17 00:00:00 2001 From: Markus Kreth Date: Mon, 5 Aug 2024 00:45:27 +0200 Subject: [PATCH] Default Format in Tests --- src/test/java/de/kreth/property2java/GeneratorTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/de/kreth/property2java/GeneratorTests.java b/src/test/java/de/kreth/property2java/GeneratorTests.java index a00559a..bd773da 100644 --- a/src/test/java/de/kreth/property2java/GeneratorTests.java +++ b/src/test/java/de/kreth/property2java/GeneratorTests.java @@ -45,8 +45,9 @@ class GeneratorTests { input.put(path, testProperties()); config = Mockito.spy(TestImplConfig.class); + when(config.getRootPath()).thenReturn(new File(".").toPath()); - when(config.getFormat()).thenReturn(Format.WithInitializer); + when(config.getFormat()).thenReturn(Format.WithUnaryOperatorParameter); when(config.getInput()).thenReturn(input); when(config.mapFilenameToClassName(anyString())).thenCallRealMethod(); when(config.outputCharset()).thenCallRealMethod();