MAPREDUCE-3723. TestAMWebServicesJobs & TestHSWebServicesJobs incorrectly asserting tests (Bhallamudi Venkata Siva Kamesh via mahadev) - Merging r1240590 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1240591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2012-02-04 18:57:20 +00:00
parent 43d921b0ad
commit 845fb480c6
3 changed files with 6 additions and 2 deletions

View File

@ -644,6 +644,10 @@ Release 0.23.1 - Unreleased
MAPREDUCE-3791. can't build site in hadoop-yarn-server-common. MAPREDUCE-3791. can't build site in hadoop-yarn-server-common.
(mahadev) (mahadev)
MAPREDUCE-3723. TestAMWebServicesJobs & TestHSWebServicesJobs
incorrectly asserting tests (Bhallamudi Venkata Siva Kamesh
via mahadev)
Release 0.23.0 - 2011-11-01 Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -777,7 +777,7 @@ public class TestAMWebServicesJobs extends JerseyTest {
assertTrue("name not set", (name != null && !name.isEmpty())); assertTrue("name not set", (name != null && !name.isEmpty()));
JSONArray counters = counterGroup.getJSONArray("counter"); JSONArray counters = counterGroup.getJSONArray("counter");
for (int j = 0; j < counters.length(); j++) { for (int j = 0; j < counters.length(); j++) {
JSONObject counter = counters.getJSONObject(i); JSONObject counter = counters.getJSONObject(j);
String counterName = counter.getString("name"); String counterName = counter.getString("name");
assertTrue("counter name not set", assertTrue("counter name not set",
(counterName != null && !counterName.isEmpty())); (counterName != null && !counterName.isEmpty()));

View File

@ -617,7 +617,7 @@ public class TestHsWebServicesJobs extends JerseyTest {
assertTrue("name not set", (name != null && !name.isEmpty())); assertTrue("name not set", (name != null && !name.isEmpty()));
JSONArray counters = counterGroup.getJSONArray("counter"); JSONArray counters = counterGroup.getJSONArray("counter");
for (int j = 0; j < counters.length(); j++) { for (int j = 0; j < counters.length(); j++) {
JSONObject counter = counters.getJSONObject(i); JSONObject counter = counters.getJSONObject(j);
String counterName = counter.getString("name"); String counterName = counter.getString("name");
assertTrue("counter name not set", assertTrue("counter name not set",
(counterName != null && !counterName.isEmpty())); (counterName != null && !counterName.isEmpty()));