use of org.apache.geode.security.ResourcePermission in project geode by apache.
the class ResourcePermissionTest method testEmptyConstructor.
@Test
public void testEmptyConstructor() {
context = new ResourcePermission();
assertEquals(Resource.NULL, context.getResource());
assertEquals(Operation.NULL, context.getOperation());
assertEquals(ResourcePermission.ALL_REGIONS, context.getRegionName());
}
use of org.apache.geode.security.ResourcePermission in project geode by apache.
the class ResourcePermissionTest method testToString.
@Test
public void testToString() {
context = new ResourcePermission();
assertEquals("NULL:NULL", context.toString());
context = new ResourcePermission("DATA", "MANAGE");
assertEquals("DATA:MANAGE", context.toString());
context = new ResourcePermission("DATA", "MANAGE", "REGIONA");
assertEquals("DATA:MANAGE:REGIONA", context.toString());
context = new ResourcePermission("data", "manage");
assertEquals("DATA:MANAGE", context.toString());
}
Aggregations