src/test/java/org/createnet/servioticy/configmanager/configuration/ConfigManagerTest.java
/**
     * Test of load method, of class ConfigManager.
     * @throws java.lang.Exception
     */
Test of load method, of class ConfigManager.
Test of load method of class ConfigManager .
@Test
    public void testLoad() throws Exception {
        String path = (new File("")).getAbsoluteFile().getAbsolutePath();
        System.out.println("load " + path);
        String[] paths = new String[] { path + "/src/test/resources/config.yml" };
        ConfigManager instance = new ConfigManager();
        TestClass result = (TestClass) instance.load(TestClass.class, paths);
        assertEquals(result.property1, "test1");
        assertEquals(result.property2, "test2");
    }
@ Test public void testLoad ( ) throws Exception { String path = ( new File ( "" ) ) . getAbsoluteFile ( ) . getAbsolutePath ( ) ; System . out . println ( "load " + path ) ; String [ ] paths = new String [ ] { path + "/src/test/resources/config.yml" } ; ConfigManager instance = new ConfigManager ( ) ; TestClass result = ( TestClass ) instance . load ( TestClass . class , paths ) ; assertEquals ( result . property1 , "test1" ) ; assertEquals ( result . property2 , "test2" ) ; }
Test of load method, of class ConfigManager.
Test of load method of class ConfigManager .