diff --git a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/CreateClientForm.java b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/CreateClientForm.java index d622f638e1..0269e03191 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/CreateClientForm.java +++ b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/CreateClientForm.java @@ -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 { diff --git a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java index 4f284bfe41..1e89e989ca 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java +++ b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java @@ -187,19 +187,19 @@ public class ClientSettingsForm extends CreateClientForm { } public void setRedirectUris(List 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() { diff --git a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/ClientSettingsTest.java b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/ClientSettingsTest.java index 14fff17fd2..557a2dbef8 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/ClientSettingsTest.java +++ b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/ClientSettingsTest.java @@ -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"); } } diff --git a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/roles/RealmRolesTest.java b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/roles/RealmRolesTest.java index d0b54bc96b..76a2bf829d 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/roles/RealmRolesTest.java +++ b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/roles/RealmRolesTest.java @@ -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 diff --git a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/users/UsersTest.java b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/users/UsersTest.java index ed4000d7c4..d0e95f521b 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/users/UsersTest.java +++ b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/users/UsersTest.java @@ -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