Change waiting loop in CamelExampleTest
@@ -53,13 +53,9 @@ public class CamelExampleTest extends KarafTestSupport {
public void verify() throws Exception {
String output = executeCommand("camel:route-list");
- while (true) {
- if (!output.contains("Started")) {
+ while (!output.contains("Started")) {
Thread.sleep(500);
output = executeCommand("camel:route-list");
- } else {
- break;
- }
}
System.out.println(output);
