Package org.tamacat.core

Examples of org.tamacat.core.Param


    }

    @Test
    public void testGetBeanParamTestConstructorMultiArgsRefFixedTypes() {
        di = new TamaCatDIContainer(XML, loader);
        Param t = (Param) di.getBean("ParamTestConstructorMultiArgsRefFixedTypes");
        assertNotNull(t);
        //assertTrue(t instanceof Param);

        assertEquals("Test", t.getParamTest().getStringValue());
        assertEquals("Test", t.getParam2().getStringValue());
    }
View Full Code Here


    }

    @Test
    public void testGetBeanParamTestConstructorArgsNull() {
        di = new TamaCatDIContainer(XML, loader);
        Param t = (Param) di.getBean("ParamTestConstructorArgsNull");
        assertNotNull(t);
        //assertTrue(t instanceof Param);

        assertEquals(null, t.getStringValue());
    }
View Full Code Here

    }

    @Test
    public void testGetBeanParamTestSetterNull() {
        di = new TamaCatDIContainer(XML, loader);
        Param t = (Param) di.getBean("ParamTestSetterNull");
        assertNotNull(t);
        //assertTrue(t instanceof Param);

        assertEquals(null, t.getStringValue());
    }
View Full Code Here

    }

    @Test
    public void testGetBeanParamTestSetterEmpty() {
        di = new TamaCatDIContainer(XML, loader);
        Param t = (Param) di.getBean("ParamTestSetterEmpty");
        assertNotNull(t);
        //assertTrue(t instanceof Param);

        assertEquals("", t.getStringValue());
    }
View Full Code Here

    }

    @Test
    public void testGetBeanParamTestInitMethod() {
        di = new TamaCatDIContainer(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 TamaCatDIContainer(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 TamaCatDIContainer(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 TamaCatDIContainer(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.core.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.