File tree Expand file tree Collapse file tree
checkmarx-ast-eclipse-plugin-tests/src/test/java/checkmarx/ast/eclipse/plugin/tests/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717import org .junit .jupiter .api .AfterEach ;
1818import org .junit .jupiter .api .BeforeAll ;
1919import org .eclipse .swtbot .swt .finder .widgets .SWTBotTree ;
20+ import org .eclipse .swt .widgets .Decorations ;
2021import org .eclipse .swt .widgets .Tree ;
2122
2223import com .checkmarx .eclipse .utils .PluginConstants ;
@@ -305,8 +306,13 @@ protected static void waitForConnectionResponse() throws TimeoutException {
305306 boolean found = false ;
306307 int retryIdx = 0 ;
307308 while (!found ) {
308- found = _bot .text ().stream ()
309- .anyMatch (t -> t .getText ().equals (INFO_SUCCESSFUL_CONNECTION ));
309+
310+ for (var text : _bot .texts ()) {
311+ if (((Decorations ) text ).getText ().contains (INFO_SUCCESSFUL_CONNECTION )) {
312+ found =true ;
313+ }
314+ }
315+
310316 if (found ) break ;
311317 if (retryIdx == 10 ) break ;
312318 _bot .sleep (1000 );
You can’t perform that action at this time.
0 commit comments