EmptyCugTreePermission extends AbstractTreePermission { @Override public boolean isGranted(long permissions) { return false; } EmptyCugTreePermission(@NotNull Tree tree, @NotNull TreeType type, @NotNull CugPermissionProvider permissionProvider); @Override boolean canRead(); @Override boolean canRead(@NotNull PropertyState property); @Override boolean canReadAll(); @Override boolean canReadProperties(); @Override boolean isGranted(long permissions); @Override boolean isGranted(long permissions, @NotNull PropertyState property);  }
@Test public void testIsGranted() { assertFalse(tp.isGranted(Permissions.ALL)); assertFalse(tp.isGranted(Permissions.WRITE)); assertFalse(tp.isGranted(Permissions.READ)); }
@Test public void testIsGrantedProperty() { PropertyState ps = PropertyStates.createProperty("prop", "val"); assertFalse(tp.isGranted(Permissions.ALL, ps)); assertFalse(tp.isGranted(Permissions.WRITE, ps)); assertFalse(tp.isGranted(Permissions.READ, ps)); }