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

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


    public List<ReferencingPolyTypesEntity> allPolyTestClasses() {
        return allInstances(ReferencingPolyTypesEntity.class);
    }

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


        referencingPolyTypesEntity.setPolyInterfaceType(polyIntImpA);
        referencingPolyTypesEntity.getPolyInterfaces().add(polyIntImpA);

        // 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");
View Full Code Here

        assertEquals(3, polyBaseClasses.size());

        StringBaseEntity polyClassBase = polyBaseClasses.get(0);
        assertTrue(polyClassBase instanceof StringBaseEntitySub);
        assertEquals("PolySubClassOne 1", polyClassBase.getStringBase());
        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());
View Full Code Here

TOP

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

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.