Merge pull request #2297 from tkyjovsk/console-ui-tests
Fixed admin console tests' compilation errors.
This commit is contained in:
commit
2bddd9ad34
5 changed files with 13 additions and 13 deletions
|
@ -72,9 +72,9 @@ public class CreateClientForm extends Form {
|
|||
}
|
||||
|
||||
public void setProtocol(String protocol) {
|
||||
Timer.time();
|
||||
Timer.DEFAULT.reset();
|
||||
protocolSelect.selectByVisibleText(protocol);
|
||||
Timer.time("clientSettings.setProtocol()");
|
||||
Timer.DEFAULT.reset("clientSettings.setProtocol()");
|
||||
}
|
||||
|
||||
public class SAMLClientSettingsForm extends Form {
|
||||
|
|
|
@ -187,19 +187,19 @@ public class ClientSettingsForm extends CreateClientForm {
|
|||
}
|
||||
|
||||
public void setRedirectUris(List<String> redirectUris) {
|
||||
Timer.time();
|
||||
Timer.DEFAULT.reset();
|
||||
while (!deleteRedirectUriIcons.isEmpty()) {
|
||||
deleteRedirectUriIcons.get(0).click();
|
||||
pause(100);
|
||||
}
|
||||
Timer.time("deleteRedirectUris");
|
||||
Timer.DEFAULT.reset("deleteRedirectUris");
|
||||
if (redirectUris != null) {
|
||||
for (String redirectUri : redirectUris) {
|
||||
addRedirectUri(redirectUri);
|
||||
pause(100);
|
||||
}
|
||||
}
|
||||
Timer.time("addRedirectUris");
|
||||
Timer.DEFAULT.reset("addRedirectUris");
|
||||
}
|
||||
|
||||
public boolean isStandardFlowEnabled() {
|
||||
|
|
|
@ -166,10 +166,10 @@ public class ClientSettingsTest extends AbstractClientTest {
|
|||
for (int i = 0; i < count; i++) {
|
||||
String clientId = String.format("%s%02d", clientIdPrefix, i);
|
||||
ClientRepresentation cr = createOidcClientRep(CONFIDENTIAL, clientId, "http://example.test/*");
|
||||
Timer.time();
|
||||
Timer.DEFAULT.reset();
|
||||
Response r = testRealmResource().clients().create(cr);
|
||||
r.close();
|
||||
Timer.time("create client");
|
||||
Timer.DEFAULT.reset("create client");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -121,13 +121,13 @@ public class RealmRolesTest extends AbstractRolesTest {
|
|||
}
|
||||
|
||||
public void createTestRoles(String namePrefix, int count) {
|
||||
Timer.time();
|
||||
Timer.DEFAULT.reset();
|
||||
for (int i = 0; i < count; i++) {
|
||||
String roleName = String.format("%s%02d", namePrefix, i);
|
||||
RoleRepresentation rr = new RoleRepresentation(roleName, "", false);
|
||||
testRealmResource().roles().create(rr);
|
||||
}
|
||||
Timer.time("create " + count + " roles");
|
||||
Timer.DEFAULT.reset("create " + count + " roles");
|
||||
}
|
||||
|
||||
// @Test
|
||||
|
|
|
@ -21,7 +21,7 @@ public class UsersTest extends AbstractUserTest {
|
|||
}
|
||||
|
||||
public void createTestUsers(String usernamePrefix, int count) {
|
||||
// Timer.time();
|
||||
// Timer.DEFAULT.reset();
|
||||
for (int i = 0; i < count; i++) {
|
||||
String username = String.format("%s%03d", usernamePrefix, i);
|
||||
UserRepresentation u = createUserRepresentation(
|
||||
|
@ -30,13 +30,13 @@ public class UsersTest extends AbstractUserTest {
|
|||
"First",
|
||||
"Last",
|
||||
true);
|
||||
Timer.time();
|
||||
Timer.DEFAULT.reset();
|
||||
Response r = testRealmResource().users().create(u);
|
||||
String id = getCreatedId(r);
|
||||
r.close();
|
||||
Timer.time("create user");
|
||||
Timer.DEFAULT.reset("create user");
|
||||
}
|
||||
// Timer.time("create " + count + " users");
|
||||
// Timer.DEFAULT.reset("create " + count + " users");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue