@Test public void testWrappingNullResourceThrows() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> GrantResource.fromResource(null)); }
public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); }
GrantResource implements IResource { public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); } }
GrantResource implements IResource { public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); } private  GrantResource(IResource wrappedResource); }
GrantResource implements IResource { public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); } private  GrantResource(IResource wrappedResource); static GrantResource fromResource(IResource resource); static GrantResource root(); @Override String getName(); @Override IResource getParent(); @Override boolean hasParent(); @Override boolean exists(); @Override Set<Permission> applicablePermissions(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
GrantResource implements IResource { public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); } private  GrantResource(IResource wrappedResource); static GrantResource fromResource(IResource resource); static GrantResource root(); @Override String getName(); @Override IResource getParent(); @Override boolean hasParent(); @Override boolean exists(); @Override Set<Permission> applicablePermissions(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }