@Test (expected = UnsupportedOperationException.class) public void testUpdateResources() throws Exception { PermissionResourceProvider provider = new PermissionResourceProvider(); Request request = createNiceMock(Request.class); provider.updateResources(request, null); }
@Override public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); }
PermissionResourceProvider extends AbstractResourceProvider { @Override public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } }
PermissionResourceProvider extends AbstractResourceProvider { @Override public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } PermissionResourceProvider(); }
PermissionResourceProvider extends AbstractResourceProvider { @Override public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } PermissionResourceProvider(); static void init(PermissionDAO dao); @Override RequestStatus createResources(Request request); @Override Set<Resource> getResources(Request request, Predicate predicate); @Override RequestStatus updateResources(Request request, Predicate predicate); @Override RequestStatus deleteResources(Request request, Predicate predicate); @Override Map<Resource.Type, String> getKeyPropertyIds(); }
PermissionResourceProvider extends AbstractResourceProvider { @Override public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } PermissionResourceProvider(); static void init(PermissionDAO dao); @Override RequestStatus createResources(Request request); @Override Set<Resource> getResources(Request request, Predicate predicate); @Override RequestStatus updateResources(Request request, Predicate predicate); @Override RequestStatus deleteResources(Request request, Predicate predicate); @Override Map<Resource.Type, String> getKeyPropertyIds(); static final String PERMISSION_ID_PROPERTY_ID; static final String PERMISSION_NAME_PROPERTY_ID; static final String PERMISSION_LABEL_PROPERTY_ID; static final String RESOURCE_NAME_PROPERTY_ID; static final String SORT_ORDER_PROPERTY_ID; }