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

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


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

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


        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");

        referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySub);
        referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySubTwo);
        referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySubThree);
View Full Code Here

        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());
        assertEquals("Another String", stringBaseEntitySubThree.getStringClassThree());
    }
View Full Code Here

TOP

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

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.