Package org.apache.isis.core.tck.dom.sqlos.data

Examples of org.apache.isis.core.tck.dom.sqlos.data.SimpleClassTwo


    public List<SimpleClassTwo> allSimpleClassTwos() {
        return allInstances(SimpleClassTwo.class);
    }

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


     * List<String> collection = sqlDataClass.getStringCollection(); int i = 0; for (String string : collection) {
     * assertEquals(SqlIntegrationTestCommon.stringList.get(i++), string); } }
     */

    private void testSingleReferenceLazy() {
        final SimpleClassTwo a = sqlDataClass.getSimpleClassTwo();
        if (!persistenceMechanismIs("in-memory")) {
            assertEquals(null, a.text); // must check direct value, as
            // framework can auto-resolve, if you use getText()
        }
    }
View Full Code Here

    private void testSimpleClassTwoReferenceLazy() {
        final List<SimpleClass> collection = sqlDataClass.getSimpleClasses1();
        if (getProperties().getProperty("isis.persistor") != "in-memory") {
            for (final SimpleClass simpleClass : collection) {
                final SimpleClassTwo a = simpleClass.getSimpleClassTwoA();
                assertEquals(null, a.text); // must check direct value, as
                                            // framework can auto-resolve, if
                                            // you use getText()
            }
        }
View Full Code Here

            }
        }
    }

    private void testSingleReferenceResolve() {
        final SimpleClassTwo a = sqlDataClass.getSimpleClassTwo();
        factory.resolve(a);
        assertEquals(simpleClassTwoA.getText(), a.getText());
    }
View Full Code Here

    }

    private void testSimpleClassTwoReferenceResolve() {
        final List<SimpleClass> collection = sqlDataClass.getSimpleClasses1();
        for (final SimpleClass simpleClass : collection) {
            final SimpleClassTwo a = simpleClass.getSimpleClassTwoA();
            factory.resolve(a);
            assertEquals(simpleClassTwoA.getText(), a.getText());
            assertEquals(simpleClassTwoA.getIntValue(), a.getIntValue());
            assertEquals(simpleClassTwoA.getBooleanValue(), a.getBooleanValue());
        }
    }
View Full Code Here

    private void testUpdate1() {
        final List<SimpleClassTwo> classes = factory.allSimpleClassTwos();
        assertEquals(2, classes.size());

        final SimpleClassTwo simpleClass = classes.get(0);
        simpleClass.setText("XXX");
        simpleClass.setBooleanValue(false);
        simpleClassTwoA.setBooleanValue(false);

        setFixtureInitializationStateIfNot(State.INITIALIZE, "in-memory");
    }
View Full Code Here

    private void testUpdate2() {
        final List<SimpleClassTwo> classes = factory.allSimpleClassTwos();
        assertEquals(2, classes.size());

        final SimpleClassTwo simpleClass = classes.get(0);
        assertEquals("XXX", simpleClass.getText());
        assertEquals(simpleClassTwoA.getBooleanValue(), simpleClass.getBooleanValue());

        setFixtureInitializationState(State.DONT_INITIALIZE);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.tck.dom.sqlos.data.SimpleClassTwo

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.