use of org.eclipse.reddeer.eclipse.ui.console.ConsoleView in project jbosstools-openshift by jbosstools.
the class CDKServerAdapterAbstractTest method verifyConsoleContainsRegEx.
/**
* Verification of successful registration of rhel image during cdk start up
* Checks for reg. expressions in console
*/
public void verifyConsoleContainsRegEx(String regex) {
ConsoleView view = new ConsoleView();
view.open();
String consoleText = view.getConsoleText();
Pattern pattern = Pattern.compile(regex);
assertTrue("Console text does not contains regex: \r\n" + regex + "\r\nConsole text:\r\n" + consoleText, pattern.matcher(consoleText).find());
}
Aggregations