package de.jpaw.util.tests;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import de.jpaw.api.ConfigurationReader;
import de.jpaw.util.ConfigurationReaderFactory;

public class ConfigReaderTest {

    @Test
    public void testProperties() throws Exception {
        final ConfigurationReader cfgReader = ConfigurationReaderFactory.getDefaultJpawConfigReader();

        Assertions.assertNull(cfgReader.getProperty("wedonothavethis"), "Did not expect a missing prperty to be non null");
        Assertions.assertEquals("string1", cfgReader.getProperty("jpaw.testvalue"), "string check");
        Assertions.assertEquals(Boolean.TRUE, cfgReader.getProperty("testbool"), "boolean check");
        Assertions.assertEquals(46, cfgReader.getProperty("jpaw.testnum"), "numeric check");
    }
}

@@ -22,16 +22,72 @@
 tests;%0A%0A
+import java.nio.file.Path;%0Aimport java.nio.file.Paths;%0A%0A
 import o
@@ -119,16 +119,16 @@
 rtions;%0A
-
 import o
@@ -339,16 +339,195 @@
 ption %7B%0A
+        final Path resourceDirectory = Paths.get(%22src%22,%22test%22,%22resources%22);%0A        final String absolutePath = resourceDirectory.toFile().getAbsolutePath() + %22/jpaw.properties%22;%0A
         
@@ -598,19 +598,8 @@
 .get
-DefaultJpaw
 Conf
@@ -607,16 +607,28 @@
 gReader(
+absolutePath
 );%0A%0A    
@@ -899,32 +899,39 @@
 E, cfgReader.get
+Boolean
 Property(%22testbo
@@ -995,32 +995,35 @@
 6, cfgReader.get
+Int
 Property(%22jpaw.t

fix test