Examples of OrphanBean


Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testListElement2()
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
        assertNotNull(orphan.getKids());
        assertTrue(orphan.getKids().size() == 2);
        assertTrue(orphan.getKids().contains("kid1"));
        assertTrue(orphan.getKids().contains("kid2"));
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

        return "org/mule/config/spring/parsers/ignored-test.xml";
    }

    protected void assertIgnoredFlagUnset(int index)
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan" + index, OrphanBean.class);
        assertTrue("orphan" + index, orphan.isIgnored());
        ChildBean child = (ChildBean) assertContentExists(orphan.getChild(), ChildBean.class);
        assertTrue("child" + index, child.isIgnored());
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testParent3()
    {
        OrphanBean orphan3 = (OrphanBean) assertBeanExists("orphan3", OrphanBean.class);
        assertBeanPopulated(orphan3, "orphan3");
        ChildBean child3 = (ChildBean) assertContentExists(orphan3.getChild(), ChildBean.class);
        assertBeanPopulated(child3, "child3");
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testAll()
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
        Collection<?> kids = (Collection<?>) assertContentExists(orphan.getKids(), Collection.class);
        assertEquals(5, kids.size());
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testOrphan2()
    {
        OrphanBean orphan2 = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
        assertBeanPopulated(orphan2, "orphan2");
        ChildBean child2 = (ChildBean) assertContentExists(orphan2.getChild(), ChildBean.class);
        assertBeanPopulated(child2, "child2");
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testNamed()
    {
        OrphanBean orphan1 = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
        assertContentExists(orphan1.getChild(), ChildBean.class);
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

        return "org/mule/config/spring/parsers/reference-collection-test.xml";
    }

    protected void testOffspringRef(int index, int size)
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan" + index, OrphanBean.class);
        Collection<?> offspring = (Collection<?>) assertContentExists(orphan.getOffspring(), Collection.class);
        assertEquals(size, offspring.size());
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testOrphan1()
    {
        OrphanBean orphan2 = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
        assertContentExists(orphan2.getChild(), ChildBean.class);
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testDirectChild()
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan", OrphanBean.class);
        ChildBean child1 = (ChildBean) assertContentExists(orphan.getChild(), ChildBean.class);
        assertEquals("string1", child1.getString());
        assertNotNull(child1.getList());
        assertEquals("list1", child1.getList().get(0));
    }
View Full Code Here

Examples of org.mule.config.spring.parsers.beans.OrphanBean

    }

    @Test
    public void testMappedChild()
    {
        OrphanBean orphan = (OrphanBean) assertBeanExists("orphan", OrphanBean.class);
        Map<?, ?> map = orphan.getMap();
        assertNotNull(map);
        assertTrue(map.containsKey("string"));
        assertEquals("string2", map.get("string"));
        assertTrue(map.containsKey("name"));
        assertEquals("child2", map.get("name"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.