Examples of DObject


Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertEquals(2, children.size());
    }

    @Test
    public void testDObjectChildsOffline() throws RepositoryAccessException {
        DObject rootd = sOfflineAdapter.wrapAsDObject(root);
        List<DObject> children = rootd.getChildren();
        assertEquals(2, children.size());
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertEquals(2, children.size());
    }

    @Test
    public void testDObjectChildsOfflineStripped() throws RepositoryAccessException {
        DObject rootd = sOfflineAdapter.wrapAsDObject(rootStripped);
        List<DObject> children = rootd.getChildren();
        assertEquals(0, children.size());
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertEquals(0, children.size());
    }

    @Test
    public void testDObjectChildsTOfflineStripped() throws RepositoryAccessException {
        DObject rootd = tOfflineAdapter.wrapAsDObject(root);
        List<DObject> children = rootd.getChildren();
        assertEquals(2, children.size());
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertEquals(2, children.size());
    }

    @Test
    public void testDObjectTypeSOffline() throws RepositoryAccessException {
        DObject rootd = sOfflineAdapter.wrapAsDObject(root);
        assertNull(rootd.getObjectType());
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertNull(rootd.getObjectType());
    }

    @Test
    public void testDObjectTypeOnline() throws RepositoryAccessException {
        DObject rootd = onlineAdapter.wrapAsDObject(rootStripped);
        expectedException.expect(RepositoryAccessException.class);
        rootd.getObjectType();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.