|
@@ -2041,13 +2041,11 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
appIds.contains(runningApp1.getApplicationId().toString()));
|
|
|
assertTrue("Running app 2 should be in the result list!",
|
|
|
appIds.contains(runningApp2.getApplicationId().toString()));
|
|
|
- assertFalse("Finished app 1 should not be in the result list " +
|
|
|
- "as it was submitted to 'root.default' but the query is for 'default'",
|
|
|
+ assertTrue("Running app 1 should be in the result list!",
|
|
|
appIds.contains(finishedApp1.getApplicationId().toString()));
|
|
|
- assertTrue("Finished app 2 should be in the result list " +
|
|
|
- "as it was submitted to 'default' and the query is exactly for 'default'",
|
|
|
+ assertTrue("Running app 1 should be in the result list!",
|
|
|
appIds.contains(finishedApp2.getApplicationId().toString()));
|
|
|
- assertEquals("incorrect number of elements", 3, array.length());
|
|
|
+ assertEquals("incorrect number of elements", 4, array.length());
|
|
|
|
|
|
rm.stop();
|
|
|
}
|
|
@@ -2110,13 +2108,11 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
appIds.contains(runningApp1.getApplicationId().toString()));
|
|
|
assertTrue("Running app 2 should be in the result list!",
|
|
|
appIds.contains(runningApp2.getApplicationId().toString()));
|
|
|
- assertTrue("Finished app 1 should be in the result list, " +
|
|
|
- "as it was submitted to 'root.default' and the query is exactly for 'root.default'!",
|
|
|
+ assertTrue("Running app 2 should be in the result list!",
|
|
|
appIds.contains(finishedApp1.getApplicationId().toString()));
|
|
|
- assertFalse("Finished app 2 should not be in the result list, " +
|
|
|
- "as it was submitted to 'default' but the query is for 'root.default'!",
|
|
|
+ assertTrue("Running app 2 should be in the result list!",
|
|
|
appIds.contains(finishedApp2.getApplicationId().toString()));
|
|
|
- assertEquals("incorrect number of elements", 3, array.length());
|
|
|
+ assertEquals("incorrect number of elements", 4, array.length());
|
|
|
|
|
|
rm.stop();
|
|
|
}
|