MAPREDUCE-3723. TestAMWebServicesJobs & TestHSWebServicesJobs incorrectly asserting tests (Bhallamudi Venkata Siva Kamesh via mahadev)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1240590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c32cd7008
commit
caed1cfaf9
|
@ -689,6 +689,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
|
||||||
|
|
|
@ -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()));
|
||||||
|
|
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue