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:
parent
43d921b0ad
commit
845fb480c6
|
@ -644,6 +644,10 @@ Release 0.23.1 - Unreleased
|
|||
MAPREDUCE-3791. can't build site in hadoop-yarn-server-common.
|
||||
(mahadev)
|
||||
|
||||
MAPREDUCE-3723. TestAMWebServicesJobs & TestHSWebServicesJobs
|
||||
incorrectly asserting tests (Bhallamudi Venkata Siva Kamesh
|
||||
via mahadev)
|
||||
|
||||
Release 0.23.0 - 2011-11-01
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -777,7 +777,7 @@ public class TestAMWebServicesJobs extends JerseyTest {
|
|||
assertTrue("name not set", (name != null && !name.isEmpty()));
|
||||
JSONArray counters = counterGroup.getJSONArray("counter");
|
||||
for (int j = 0; j < counters.length(); j++) {
|
||||
JSONObject counter = counters.getJSONObject(i);
|
||||
JSONObject counter = counters.getJSONObject(j);
|
||||
String counterName = counter.getString("name");
|
||||
assertTrue("counter name not set",
|
||||
(counterName != null && !counterName.isEmpty()));
|
||||
|
|
|
@ -617,7 +617,7 @@ public class TestHsWebServicesJobs extends JerseyTest {
|
|||
assertTrue("name not set", (name != null && !name.isEmpty()));
|
||||
JSONArray counters = counterGroup.getJSONArray("counter");
|
||||
for (int j = 0; j < counters.length(); j++) {
|
||||
JSONObject counter = counters.getJSONObject(i);
|
||||
JSONObject counter = counters.getJSONObject(j);
|
||||
String counterName = counter.getString("name");
|
||||
assertTrue("counter name not set",
|
||||
(counterName != null && !counterName.isEmpty()));
|
||||
|
|
Loading…
Reference in New Issue