Package org.geoserver.data.test

Examples of org.geoserver.data.test.MockCreator


        }
    }

    @Test
    public void testRoleStoreWrapper() throws Exception {
        setMockCreator(new MockCreator() {
            @Override
            public GeoServerSecurityManager createSecurityManager(MockTestData testData) throws Exception {
                GeoServerSecurityManager secMgr = createMock(GeoServerSecurityManager.class);

                GeoServerRoleStore roleStore1 = createRoleStore("test", secMgr, "role1", "parent1");
View Full Code Here


        }
    }
   
    @Test
    public void testRoleServiceWrapperAccessRules() throws Exception {
        setMockCreator(new MockCreator() {
            @Override
            public GeoServerSecurityManager createSecurityManager( MockTestData testData) throws Exception {
                GeoServerSecurityManager secMgr = createNiceMock(GeoServerSecurityManager.class);

                GeoServerRoleStore roleStore = createRoleStore("test", secMgr, "role1", "parent1");
View Full Code Here

        }
    }

    @Test
    public void testRoleStoreWrapperWithUGServices() throws Exception {
        setMockCreator(new MockCreator() {
            @Override
            public GeoServerSecurityManager createSecurityManager(MockTestData testData) throws Exception {
                GeoServerSecurityManager secMgr = createNiceMock(GeoServerSecurityManager.class);

                GeoServerUserGroupStore ugStore1 = createUserGroupStore("test1", secMgr);
View Full Code Here

        }
    }

    @Test
    public void testMappedRoles() throws Exception {
        setMockCreator(new MockCreator() {
            @Override
            public GeoServerSecurityManager createSecurityManager(MockTestData testData) throws Exception {
                GeoServerSecurityManager secMgr = createNiceMock(GeoServerSecurityManager.class);

                GeoServerRoleStore roleStore =
View Full Code Here

    static final String LAKES_GROUP = "lakesGroup";

    @Override
    protected void setUp(MockTestData testData) throws Exception {
        super.setUp(testData);
        setMockCreator(new MockCreator() {
            @Override
            protected void addToCatalog(Catalog catalog, MockCatalogBuilder b) {
                String lakes = MockData.LAKES.getLocalPart();
                String forests = MockData.FORESTS.getLocalPart();
                String bridges = MockData.BRIDGES.getLocalPart();
View Full Code Here

        assertTrue(stores.containsAll(visitor.getObjects(StoreInfo.class, ModificationType.DELETE)));
    }
   
    @Test
    public void testCascadeStyle() {
        setMockCreator(new MockCreator() {
            @Override
            public Catalog createCatalog(MockTestData testData) throws Exception {
                Catalog catalog = createNiceMock(Catalog.class);

                StyleInfo s = createNiceMock(StyleInfo.class);
View Full Code Here

TOP

Related Classes of org.geoserver.data.test.MockCreator

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.