Package org.apache.isis.runtimes.dflt.objectstores.sql.testsystem.dataclasses.polymorphism

Examples of org.apache.isis.runtimes.dflt.objectstores.sql.testsystem.dataclasses.polymorphism.PolyInterfaceImplB


        final EmptyInterface match = new EmptyInterfaceEx();
        final List<EmptyInterface> matches = factory.allEmptyInterfacesThatMatch(match);
        assertEquals(1, matches.size());

        final EmptyInterface emptyInterface = matches.get(0);
        final PolyInterfaceImplB imp = (PolyInterfaceImplB) emptyInterface;
        assertEquals(IMPL_B_STRING, imp.getString());
    }
View Full Code Here


        assertEquals(IMPL_B_STRING, imp.getString());
    }

    public void testCannotFindByMatchWithWrongValue() {
        final SqlDataClassFactory factory = SqlIntegrationTestSingleton.getSqlDataClassFactory();
        final PolyInterfaceImplB match = new PolyInterfaceImplB();
        match.setInteger(0);
        final List<EmptyInterface> matches = factory.allEmptyInterfacesThatMatch(match);
        assertEquals(0, matches.size());
    }
View Full Code Here

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

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

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.sql.testsystem.dataclasses.polymorphism.PolyInterfaceImplB

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.