this._helper.setWorkflowConfig();
this._helper.setContentStates();
Map<String, String> params = new HashMap<String, String>();
this.executeSearch("admin", params);
IContentFinderAction action = (IContentFinderAction) this.getAction();
action = (IContentFinderAction) this.getAction();
List<String> contents = action.getContents();
assertEquals(24, contents.size());
this.executeSearch("editorCoach", params);
action = (IContentFinderAction) this.getAction();
contents = action.getContents();
String[] contentsId = { "ART102", "ART112" };
assertEquals(contentsId.length, contents.size());
for (int i = 0; i < contentsId.length; i++) {
String contentId = contentsId[i];
assertTrue(contents.contains(contentId));
}
this.executeSearch("supervisorCoach", params);
action = (IContentFinderAction) this.getAction();
contents = action.getContents();
contentsId = new String[]{ "ART102", "ART111", "ART112", "RAH101" };
assertEquals(contentsId.length, contents.size());
for (int i = 0; i < contentsId.length; i++) {
String contentId = contentsId[i];
assertTrue(contents.contains(contentId));