fix build errors

This commit is contained in:
Bill Burke 2015-07-10 21:02:25 -04:00
parent 474ebed0ee
commit ef255c6a5c
2 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ public class ClientTest extends AbstractClientTest {
@Test @Test
public void getClients() { public void getClients() {
assertNames(realm.clients().findAll(), "account", "realm-management", "security-admin-console", "broker"); assertNames(realm.clients().findAll(), "account", "realm-management", "security-admin-console", "broker", "impersonation");
} }
private String createClient() { private String createClient() {
@ -59,7 +59,7 @@ public class ClientTest extends AbstractClientTest {
String id = createClient(); String id = createClient();
assertNotNull(realm.clients().get(id)); assertNotNull(realm.clients().get(id));
assertNames(realm.clients().findAll(), "account", "realm-management", "security-admin-console", "broker", "my-app"); assertNames(realm.clients().findAll(), "account", "realm-management", "security-admin-console", "broker", "my-app", "impersonation");
} }
@Test @Test

View file

@ -86,7 +86,7 @@ public class ImportTest extends AbstractModelTest {
Assert.assertEquals(0, session.users().getFederatedIdentities(user, realm).size()); Assert.assertEquals(0, session.users().getFederatedIdentities(user, realm).size());
List<ClientModel> resources = realm.getClients(); List<ClientModel> resources = realm.getClients();
Assert.assertEquals(7, resources.size()); Assert.assertEquals(8, resources.size());
// Test applications imported // Test applications imported
ClientModel application = realm.getClientByClientId("Application"); ClientModel application = realm.getClientByClientId("Application");
@ -97,7 +97,7 @@ public class ImportTest extends AbstractModelTest {
Assert.assertNotNull(otherApp); Assert.assertNotNull(otherApp);
Assert.assertNull(nonExisting); Assert.assertNull(nonExisting);
Map<String, ClientModel> clients = realm.getClientNameMap(); Map<String, ClientModel> clients = realm.getClientNameMap();
Assert.assertEquals(7, clients.size()); Assert.assertEquals(8, clients.size());
Assert.assertTrue(clients.values().contains(application)); Assert.assertTrue(clients.values().contains(application));
Assert.assertTrue(clients.values().contains(otherApp)); Assert.assertTrue(clients.values().contains(otherApp));
Assert.assertTrue(clients.values().contains(accountApp)); Assert.assertTrue(clients.values().contains(accountApp));