@Test public void testUpdateResources() throws Exception { AmbariManagementController amc = createMock(AmbariManagementController.class); LdapSyncEventResourceProvider provider = new TestLdapSyncEventResourceProvider(amc); Request request = createNiceMock(Request.class); try { provider.updateResources(request, null); Assert.fail("expected UnsupportedOperationException"); } catch (UnsupportedOperationException e) { } }
@Override public RequestStatus updateResources(Request event, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); }
LdapSyncEventResourceProvider extends AbstractControllerResourceProvider { @Override public RequestStatus updateResources(Request event, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } }
LdapSyncEventResourceProvider extends AbstractControllerResourceProvider { @Override public RequestStatus updateResources(Request event, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } LdapSyncEventResourceProvider(AmbariManagementController managementController); }
LdapSyncEventResourceProvider extends AbstractControllerResourceProvider { @Override public RequestStatus updateResources(Request event, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } LdapSyncEventResourceProvider(AmbariManagementController managementController); @Override RequestStatus createResourcesAuthorized(Request event); @Override Set<Resource> getResources(Request event, Predicate predicate); @Override RequestStatus updateResources(Request event, Predicate predicate); @Override RequestStatus deleteResourcesAuthorized(Request request, Predicate predicate); @Override Map<Resource.Type, String> getKeyPropertyIds(); }
LdapSyncEventResourceProvider extends AbstractControllerResourceProvider { @Override public RequestStatus updateResources(Request event, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { throw new UnsupportedOperationException("Not supported."); } LdapSyncEventResourceProvider(AmbariManagementController managementController); @Override RequestStatus createResourcesAuthorized(Request event); @Override Set<Resource> getResources(Request event, Predicate predicate); @Override RequestStatus updateResources(Request event, Predicate predicate); @Override RequestStatus deleteResourcesAuthorized(Request request, Predicate predicate); @Override Map<Resource.Type, String> getKeyPropertyIds(); static final String EVENT_ID_PROPERTY_ID; static final String EVENT_STATUS_PROPERTY_ID; static final String EVENT_STATUS_DETAIL_PROPERTY_ID; static final String EVENT_START_TIME_PROPERTY_ID; static final String EVENT_END_TIME_PROPERTY_ID; static final String USERS_CREATED_PROPERTY_ID; static final String USERS_UPDATED_PROPERTY_ID; static final String USERS_REMOVED_PROPERTY_ID; static final String USERS_SKIPPED_PROPERTY_ID; static final String GROUPS_CREATED_PROPERTY_ID; static final String GROUPS_UPDATED_PROPERTY_ID; static final String GROUPS_REMOVED_PROPERTY_ID; static final String MEMBERSHIPS_CREATED_PROPERTY_ID; static final String MEMBERSHIPS_REMOVED_PROPERTY_ID; static final String EVENT_SPECS_PROPERTY_ID; }