Examples of GeoServerUser


Examples of org.geoserver.security.impl.GeoServerUser

            assertEquals(1, service.getUsers().size());
            assertEquals(1, service.getUserCount());
            assertEquals(0, service.getUserGroups().size());
            assertEquals(0, service.getGroupCount());
                       
            GeoServerUser admin= service.getUserByUsername(GeoServerUser.ADMIN_USERNAME);
            assertNotNull(admin);
            assertEquals(GeoServerUser.AdminEnabled,admin.isEnabled());
           
            GeoServerMultiplexingPasswordEncoder enc= getEncoder(service);
            assertTrue(enc.isPasswordValid(admin.getPassword(), GeoServerUser.DEFAULT_ADMIN_PASSWD,null));
            assertEquals(admin.getProperties().size(),0);
           
            assertEquals(0, service.getGroupsForUser(admin).size());
                       
        } catch (IOException ex) {
            Assert.fail(ex.getMessage());
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.