Package org.tamacat.groovy.test

Examples of org.tamacat.groovy.test.Param


    }

    @Test
    public void testGetBeanParamTestInitMethod() {
        di = new GroovyDIContainer("test.xml", loader);
        Param t = (Param) di.getBean("ParamTestInitMethod");
        assertNotNull(t);
        assertTrue(t instanceof Param);

        assertEquals("Initialized", t.getInitValue());

        t = (Param) di.getBean("ParamTestSetterNull");
        assertEquals(null, t.getInitValue());
    }
View Full Code Here


    }

    @Test
    public void testParamTestCDATA() {
        di = new GroovyDIContainer("test.xml", loader);
        Param param = (Param) di.getBean("ParamTestCDATA");
        assertEquals("<html>TEST</html>", param.getStringValue().trim());
    }
View Full Code Here

    }

    @Test
    public void testSingleAliases() {
        di = new GroovyDIContainer("test.xml", loader);
        Param param = (Param)di.getBean("AliasTest");
        assertEquals("Test", param.getStringValue());

        Param org = (Param) di.getBean("AliasTestSingle");
        assertEquals(org.getStringValue(), param.getStringValue());
    }
View Full Code Here

    }

    @Test
    public void testMultiAliases() {
        di = new GroovyDIContainer("test.xml", loader);
        Param param1 = (Param)di.getBean("AliasTest1");
        assertEquals("Test", param1.getStringValue());

        Param param2 = (Param)di.getBean("AliasTest2");
        assertEquals("Test", param2.getStringValue());
    }
View Full Code Here

TOP

Related Classes of org.tamacat.groovy.test.Param

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.