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

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


    private void polymorphicLoad() {
        final List<StringBaseEntity> polyBaseClasses = referencingPolyTypesEntity.getPolyBaseClasses();
        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);
View Full Code Here

TOP

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

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.