Package org.apache.isis.core.tck.dom.poly

Examples of org.apache.isis.core.tck.dom.poly.StringBaseEntitySubTwo


        final StringBaseEntitySubThree object = newTransientInstance(StringBaseEntitySubThree.class);
        return object;
    }

    public StringBaseEntitySubTwo newPolySubClassTwo() {
        final StringBaseEntitySubTwo object = newTransientInstance(StringBaseEntitySubTwo.class);
        return object;
    }
View Full Code Here


        // setup the polyTestClass
        final StringBaseEntitySub stringBaseEntitySub = factory.newPolySubClassOne();
        stringBaseEntitySub.setStringBase("PolySubClassOne 1");
        stringBaseEntitySub.setStringClassOne("Class 1");

        final StringBaseEntitySubTwo stringBaseEntitySubTwo = factory.newPolySubClassTwo();
        stringBaseEntitySubTwo.setStringBase("PolySubClassTwo 1");
        stringBaseEntitySubTwo.setStringClassTwo("Class 2");

        final StringBaseEntitySubThree stringBaseEntitySubThree = factory.newPolySubClassThree();
        stringBaseEntitySubThree.setStringBase("PolySubClassThree 1");
        stringBaseEntitySubThree.setStringClassThree("Another String");
        stringBaseEntitySubThree.setStringClassTwo("Class 3");
View Full Code Here

        final StringBaseEntitySub stringBaseEntitySub = (StringBaseEntitySub) polyClassBase;
        assertEquals("Class 1", stringBaseEntitySub.getStringClassOne());

        polyClassBase = polyBaseClasses.get(1);
        assertTrue(polyClassBase instanceof StringBaseEntitySubTwo);
        final StringBaseEntitySubTwo stringBaseEntitySubTwo = (StringBaseEntitySubTwo) polyClassBase;
        assertEquals("Class 2", stringBaseEntitySubTwo.getStringClassTwo());

        polyClassBase = polyBaseClasses.get(2);
        assertTrue(polyClassBase instanceof StringBaseEntitySubThree);
        final StringBaseEntitySubThree stringBaseEntitySubThree = (StringBaseEntitySubThree) polyClassBase;
        assertEquals("Class 3", stringBaseEntitySubThree.getStringClassTwo());
View Full Code Here

TOP

Related Classes of org.apache.isis.core.tck.dom.poly.StringBaseEntitySubTwo

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.