MAPREDUCE-4716. TestHsWebServicesJobsQuery.testJobsQueryStateInvalid fails with jdk7. (tgraves via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1457068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2013-03-15 18:58:21 +00:00
parent 1a00fa6e3a
commit 3eeb720b2f
2 changed files with 5 additions and 2 deletions

View File

@ -52,6 +52,9 @@ Release 2.0.5-beta - UNRELEASED
MAPREDUCE-4571. TestHsWebServicesJobs fails on jdk7. (tgraves via tucu) MAPREDUCE-4571. TestHsWebServicesJobs fails on jdk7. (tgraves via tucu)
MAPREDUCE-4716. TestHsWebServicesJobsQuery.testJobsQueryStateInvalid
fails with jdk7. (tgraves via tucu)
Release 2.0.4-alpha - UNRELEASED Release 2.0.4-alpha - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -284,9 +284,9 @@ public class TestHsWebServicesJobsQuery extends JerseyTest {
String type = exception.getString("exception"); String type = exception.getString("exception");
String classname = exception.getString("javaClassName"); String classname = exception.getString("javaClassName");
WebServicesTestUtils WebServicesTestUtils
.checkStringMatch( .checkStringContains(
"exception message", "exception message",
"No enum const class org.apache.hadoop.mapreduce.v2.api.records.JobState.InvalidState", "org.apache.hadoop.mapreduce.v2.api.records.JobState.InvalidState",
message); message);
WebServicesTestUtils.checkStringMatch("exception type", WebServicesTestUtils.checkStringMatch("exception type",
"IllegalArgumentException", type); "IllegalArgumentException", type);