protected void checkConsoleForException() { ConsoleView consoleView = new ConsoleView(); consoleView.open(); assertFalse( "Console contains text 'Operation (\"deploy\") failed':\n" + consoleView.getConsoleText(), consoleView.getConsoleText().contains("Operation (\"deploy\") failed")); }
private void checkBrowserForErrorPage(BrowserEditor browser) { ConsoleView consoleView = new ConsoleView(); consoleView.open(); assertFalse( "Browser contains text 'Status 404'\n Console output:\n" + consoleView.getConsoleText(), browser.getText().contains("Status 404")); }
protected void checkBrowserForErrorPage(BrowserEditor browser) { ConsoleView consoleView = new ConsoleView(); consoleView.open(); assertFalse( "Browser contains text 'Status 404'\n Console output:\n" + consoleView.getConsoleText(), browser.getText().contains("Status 404") || browser.getText().contains("404 - Not Found")); assertFalse( "Browser contains text 'Error processing request'\n Console output:\n" + consoleView.getConsoleText(), browser.getText().contains("Error processing request")); }
private void testClient() { Assert.assertTrue("service must exist", servicePassed); clientHelper.createClient( deploymentHelper.getWSDLUrl(getWsProjectName(), getWsName()), WebServiceRuntime.JBOSS_WS, getWsClientProjectName(), getEarProjectName(), SliderLevel.DEVELOP, getWsClientPackage()); IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(getWsClientProjectName()); String pkg = "org/jboss/wsclient"; String cls = "src/" + pkg + "/AreaService.java"; Assert.assertTrue(p.getFile(cls).exists()); cls = "src/" + pkg + "/clientsample/ClientSample.java"; IFile f = p.getFile(cls); Assert.assertTrue(f.exists()); replaceContent(f, "/resources/jbossws/clientsample.java.ws"); /* * workaround for https://issues.jboss.org/browse/JBIDE-9817 */ projectExplorer.selectProject(getWsClientProjectName()); SWTBotTree tree = projectExplorer.bot().tree(); SWTBotTreeItem item = tree.getTreeItem(getWsClientProjectName()); item.expand(); removeRuntimeLibrary(tree, item, bot, util); /* workaround problems with generated code that require JAX-WS API 2.2 */ jaxWsApi22RequirementWorkaround(getWsClientProjectName(), getWsClientPackage()); eclipse.runJavaApplication( getWsClientProjectName(), "org.jboss.wsclient.clientsample.ClientSample", null); util.waitForNonIgnoredJobs(); // wait until the client ends (prints the last line) new WaitUntil(new ConsoleHasText("Call Over!"), TimePeriod.NORMAL); ConsoleView cw = new ConsoleView(); String consoleOutput = cw.getConsoleText(); LOGGER.info(consoleOutput); Assert.assertTrue(consoleOutput, consoleOutput.contains("Server said: 37.5")); Assert.assertTrue(consoleOutput.contains("Server said: 3512.3699")); }
public ApplicationIsTerminated() { console = new ConsoleView(); console.open(); }
public boolean test() { return console.getTitle().contains("<terminated>"); }
@Override public boolean test() { return !consoleView.getConsoleText().isEmpty(); }
public ConsoleHasText() { consoleView = new ConsoleView(); consoleView.open(); }