Package org.apache.isis.runtimes.dflt.objectstores.nosql

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.TrialObjects


    @Test
    public void hasInstances() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);

        final TrialObjects testObjects = new TrialObjects();

        final SerialOid oid = SerialOid.createTransient(1);
        final ExampleValuePojo pojo = new ExampleValuePojo();

        final ObjectAdapter adapter = testObjects.createAdapter(pojo, oid);

        final ObjectSpecification loadSpecification = testObjects.loadSpecification(ExampleValuePojo.class);

        assertEquals(loadSpecification, adapter.getSpecification());
        assertEquals(oid, adapter.getOid());
        assertEquals(pojo, adapter.getObject());
        assertEquals(ResolveState.TRANSIENT, adapter.getResolveState());
View Full Code Here


    private DB testDb;

    @Before
    public void setup() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);
        testObjects = new TrialObjects();

        try {
            final Mongo m = new Mongo();
            m.dropDatabase("testdb");
            testDb = m.getDB("testdb");
View Full Code Here

    private DB testDb;

    @Before
    public void setup() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);
        testObjects = new TrialObjects();

        try {
            final Mongo m = new Mongo();
            m.dropDatabase("testdb");
            testDb = m.getDB("testdb");
View Full Code Here

    @Test
    public void hasInstances() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);

        final TrialObjects testObjects = new TrialObjects();

        final SerialOid oid = SerialOid.createTransient(1);
        final ExampleValuePojo pojo = new ExampleValuePojo();

        final ObjectAdapter adapter = testObjects.createAdapter(pojo, oid);

        final ObjectSpecification loadSpecification = testObjects.loadSpecification(ExampleValuePojo.class);

        assertEquals(loadSpecification, adapter.getSpecification());
        assertEquals(oid, adapter.getOid());
        assertEquals(pojo, adapter.getObject());
        assertEquals(ResolveState.TRANSIENT, adapter.getResolveState());
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.nosql.TrialObjects

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.