Fixed admin console tests' compilation errors.
This commit is contained in:
parent
4286f0560f
commit
e66060b00b
5 changed files with 13 additions and 13 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue