Merge pull request #2297 from tkyjovsk/console-ui-tests

Fixed admin console tests' compilation errors.
This commit is contained in:
Stian Thorgersen 2016-03-01 08:00:46 +01:00
commit 2bddd9ad34
5 changed files with 13 additions and 13 deletions

View file

@ -72,9 +72,9 @@ public class CreateClientForm extends Form {
} }
public void setProtocol(String protocol) { public void setProtocol(String protocol) {
Timer.time(); Timer.DEFAULT.reset();
protocolSelect.selectByVisibleText(protocol); protocolSelect.selectByVisibleText(protocol);
Timer.time("clientSettings.setProtocol()"); Timer.DEFAULT.reset("clientSettings.setProtocol()");
} }
public class SAMLClientSettingsForm extends Form { public class SAMLClientSettingsForm extends Form {

View file

@ -187,19 +187,19 @@ public class ClientSettingsForm extends CreateClientForm {
} }
public void setRedirectUris(List<String> redirectUris) { public void setRedirectUris(List<String> redirectUris) {
Timer.time(); Timer.DEFAULT.reset();
while (!deleteRedirectUriIcons.isEmpty()) { while (!deleteRedirectUriIcons.isEmpty()) {
deleteRedirectUriIcons.get(0).click(); deleteRedirectUriIcons.get(0).click();
pause(100); pause(100);
} }
Timer.time("deleteRedirectUris"); Timer.DEFAULT.reset("deleteRedirectUris");
if (redirectUris != null) { if (redirectUris != null) {
for (String redirectUri : redirectUris) { for (String redirectUri : redirectUris) {
addRedirectUri(redirectUri); addRedirectUri(redirectUri);
pause(100); pause(100);
} }
} }
Timer.time("addRedirectUris"); Timer.DEFAULT.reset("addRedirectUris");
} }
public boolean isStandardFlowEnabled() { public boolean isStandardFlowEnabled() {

View file

@ -166,10 +166,10 @@ public class ClientSettingsTest extends AbstractClientTest {
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
String clientId = String.format("%s%02d", clientIdPrefix, i); String clientId = String.format("%s%02d", clientIdPrefix, i);
ClientRepresentation cr = createOidcClientRep(CONFIDENTIAL, clientId, "http://example.test/*"); ClientRepresentation cr = createOidcClientRep(CONFIDENTIAL, clientId, "http://example.test/*");
Timer.time(); Timer.DEFAULT.reset();
Response r = testRealmResource().clients().create(cr); Response r = testRealmResource().clients().create(cr);
r.close(); r.close();
Timer.time("create client"); Timer.DEFAULT.reset("create client");
} }
} }

View file

@ -121,13 +121,13 @@ public class RealmRolesTest extends AbstractRolesTest {
} }
public void createTestRoles(String namePrefix, int count) { public void createTestRoles(String namePrefix, int count) {
Timer.time(); Timer.DEFAULT.reset();
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
String roleName = String.format("%s%02d", namePrefix, i); String roleName = String.format("%s%02d", namePrefix, i);
RoleRepresentation rr = new RoleRepresentation(roleName, "", false); RoleRepresentation rr = new RoleRepresentation(roleName, "", false);
testRealmResource().roles().create(rr); testRealmResource().roles().create(rr);
} }
Timer.time("create " + count + " roles"); Timer.DEFAULT.reset("create " + count + " roles");
} }
// @Test // @Test

View file

@ -21,7 +21,7 @@ public class UsersTest extends AbstractUserTest {
} }
public void createTestUsers(String usernamePrefix, int count) { public void createTestUsers(String usernamePrefix, int count) {
// Timer.time(); // Timer.DEFAULT.reset();
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
String username = String.format("%s%03d", usernamePrefix, i); String username = String.format("%s%03d", usernamePrefix, i);
UserRepresentation u = createUserRepresentation( UserRepresentation u = createUserRepresentation(
@ -30,13 +30,13 @@ public class UsersTest extends AbstractUserTest {
"First", "First",
"Last", "Last",
true); true);
Timer.time(); Timer.DEFAULT.reset();
Response r = testRealmResource().users().create(u); Response r = testRealmResource().users().create(u);
String id = getCreatedId(r); String id = getCreatedId(r);
r.close(); r.close();
Timer.time("create user"); Timer.DEFAULT.reset("create user");
} }
// Timer.time("create " + count + " users"); // Timer.DEFAULT.reset("create " + count + " users");
} }
@Test @Test