@Before public final void initTest() { attrs = new TestAccountsValue(); connector = new OpenAMConnector(); connector.init(createConfiguration()); name = new Name(attrs.getUsername()); }
@Test(expected = ConnectorException.class) public final void deleteWithWrongObjectClass() { connector.delete(attrs.getWrongObjectClass(), newAccount, null); }
@Test(expected = ConnectorException.class) public final void deleteTestOfNotExistsUser() { connector.init(createConfiguration()); connector.delete(ObjectClass.ACCOUNT, new Uid(attrs.getWrongUsername()), null); connector.dispose(); }