You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-commits@hadoop.apache.org by vi...@apache.org on 2012/02/25 03:31:59 UTC

svn commit: r1293522 - /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java

Author: vinodkv
Date: Sat Feb 25 02:31:59 2012
New Revision: 1293522

URL: http://svn.apache.org/viewvc?rev=1293522&view=rev
Log:
MAPREDUCE-2793. Reneabling commented out test from previous commit.
svn merge --ignore-ancestry -c 1293521 ../../trunk

Modified:
    hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java

Modified: hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java?rev=1293522&r1=1293521&r2=1293522&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java (original)
+++ hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java Sat Feb 25 02:31:59 2012
@@ -173,7 +173,7 @@ public class TestHsWebServicesJobsQuery 
         .contextPath("jersey-guice-filter").servletPath("/").build());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryUserNone() throws JSONException, Exception {
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
@@ -187,7 +187,6 @@ public class TestHsWebServicesJobsQuery 
 
   @Test
   public void testJobsQueryUser() throws JSONException, Exception {
-    System.out.println("###test start");
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
         .path("mapreduce").path("jobs").queryParam("user", "mock")
@@ -204,7 +203,7 @@ public class TestHsWebServicesJobsQuery 
     VerifyJobsUtils.verifyHsJob(info, job);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryLimit() throws JSONException, Exception {
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
@@ -219,7 +218,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("incorrect number of elements", 2, arr.length());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryLimitInvalid() throws JSONException, Exception {
     WebResource r = resource();
 
@@ -243,7 +242,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryQueue() throws JSONException, Exception {
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
@@ -257,7 +256,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("incorrect number of elements", 3, arr.length());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryQueueNonExist() throws JSONException, Exception {
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
@@ -269,7 +268,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("jobs is not null", JSONObject.NULL, json.get("jobs"));
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeEnd() throws JSONException, Exception {
     WebResource r = resource();
     // the mockJobs start time is the current time - some random amount
@@ -286,7 +285,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("incorrect number of elements", 3, arr.length());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeBegin() throws JSONException, Exception {
     WebResource r = resource();
     // the mockJobs start time is the current time - some random amount
@@ -301,7 +300,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("jobs is not null", JSONObject.NULL, json.get("jobs"));
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeBeginEnd() throws JSONException, Exception {
     WebResource r = resource();
     Map<JobId, Job> jobsMap = appContext.getAllJobs();
@@ -329,7 +328,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("incorrect number of elements", size - 1, arr.length());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeBeginEndInvalid() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -358,7 +357,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeInvalidformat() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -384,7 +383,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeEndInvalidformat() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -410,7 +409,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeNegative() throws JSONException, Exception {
     WebResource r = resource();
     ClientResponse response = r.path("ws").path("v1").path("history")
@@ -435,7 +434,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryStartTimeEndNegative() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -459,7 +458,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeEndNegative() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -483,7 +482,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeBeginNegative() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -508,7 +507,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeBeginEndInvalid() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -537,7 +536,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeInvalidformat() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -563,7 +562,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeEndInvalidformat() throws JSONException,
       Exception {
     WebResource r = resource();
@@ -589,7 +588,7 @@ public class TestHsWebServicesJobsQuery 
         "org.apache.hadoop.yarn.webapp.BadRequestException", classname);
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeBegin() throws JSONException, Exception {
     WebResource r = resource();
     // the mockJobs finish time is the current time + some random amount
@@ -606,7 +605,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("incorrect number of elements", 3, arr.length());
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeEnd() throws JSONException, Exception {
     WebResource r = resource();
     // the mockJobs finish time is the current time + some random amount
@@ -621,7 +620,7 @@ public class TestHsWebServicesJobsQuery 
     assertEquals("jobs is not null", JSONObject.NULL, json.get("jobs"));
   }
 
-  //@Test
+  @Test
   public void testJobsQueryFinishTimeBeginEnd() throws JSONException, Exception {
     WebResource r = resource();