use of org.keycloak.partialimport.PartialImportResult in project keycloak by keycloak.
the class PartialImportTest method testAddClients.
@Test
public void testAddClients() throws IOException {
setFail();
addClients(false);
PartialImportResults results = doImport();
assertEquals(NUM_ENTITIES, results.getAdded());
for (PartialImportResult result : results.getResults()) {
String id = result.getId();
ClientResource clientRsc = testRealmResource().clients().get(id);
ClientRepresentation client = clientRsc.toRepresentation();
assertTrue(client.getName().startsWith(CLIENT_PREFIX));
}
}
Aggregations