public boolean test() { ServersView serversView = new ServersView(); serversView.open(); Server server = serversView.getServer(serverNameLabel); ServerModule serverModule = server.getModule(new RegexMatcher(".*" + projectName + ".*")); ModuleLabel moduleLabel = serverModule.getLabel(); ServerState moduleState = moduleLabel.getState(); return moduleState == ServerState.STARTED; }
protected void checkServerViewForStatus(String projectName, String serverNameLabel) { ServersView serversView = new ServersView(); serversView.open(); Server server = serversView.getServer(serverNameLabel); ServerModule serverModule = server.getModule(new RegexMatcher(".*" + projectName + ".*")); ModuleLabel moduleLabel = serverModule.getLabel(); ServerState moduleState = moduleLabel.getState(); org.junit.Assert.assertTrue("Module has not been started!", moduleState == ServerState.STARTED); }