Skip to content
Snippets Groups Projects
Commit b3d7e5ea authored by felmer's avatar felmer
Browse files

LMS-597 bugs fixed in test code concerning group creation and checking

SVN: 8515
parent 4ef871e8
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,9 @@ public class AuthorizationManagementConsolTest extends AbstractGWTTestCase
final Client client = new Client();
client.onModuleLoad();
remoteConsole.prepare(new LoginCommand("a", "a"));
remoteConsole.prepare(new CreateGroupCommand("test-group"));
remoteConsole.prepare(new CheckGroupCommand("test-group")).finish(10000);
String groupCode = "test-group";
remoteConsole.prepare(new CreateGroupCommand(groupCode));
remoteConsole.prepare(new CheckGroupCommand(groupCode.toUpperCase())).finish(10000);
}
......
......@@ -38,7 +38,7 @@ public class CheckGroupCommand extends CallbackClassCondition implements ITestCo
public CheckGroupCommand(String groupCode)
{
super(AddGroupDialog.RegisterGroupCallback.class);
super(GroupsView.ListGroupsCallback.class);
this.groupCode = groupCode;
}
......@@ -53,8 +53,12 @@ public class CheckGroupCommand extends CallbackClassCondition implements ITestCo
{
GroupModel groupModel = store.getAt(i);
Object value = groupModel.get(GroupModel.CODE);
System.out.println(i+":"+value+" "+groupCode);
if (groupCode.equals(value))
{
return;
}
}
Assert.fail("No group with code '" + groupCode + "' found.");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment