incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khorg...@apache.org
Subject svn commit: r1156687 - /incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java
Date Thu, 11 Aug 2011 17:21:05 GMT
Author: khorgath
Date: Thu Aug 11 17:21:05 2011
New Revision: 1156687

URL: http://svn.apache.org/viewvc?rev=1156687&view=rev
Log:
HCATALOG-79 - Adding ErrorType.ERROR_MOVE_FAILED to error types to check for on duplicate
partition publish test

Modified:
    incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java

Modified: incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java?rev=1156687&r1=1156686&r2=1156687&view=diff
==============================================================================
--- incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java
(original)
+++ incubator/hcatalog/trunk/src/test/org/apache/hcatalog/mapreduce/TestHCatDynamicPartitioned.java
Thu Aug 11 17:21:05 2011
@@ -125,7 +125,11 @@ public class TestHCatDynamicPartitioned 
 
     assertTrue(exc != null);
     assertTrue(exc instanceof HCatException);
-    assertEquals(ErrorType.ERROR_PUBLISHING_PARTITION, ((HCatException) exc).getErrorType());
+    assertTrue( "Got exception of type ["+((HCatException) exc).getErrorType().toString()
+        + "] Expected ERROR_PUBLISHING_PARTITION or ERROR_MOVE_FAILED",
+        (ErrorType.ERROR_PUBLISHING_PARTITION == ((HCatException) exc).getErrorType()) 
+        || (ErrorType.ERROR_MOVE_FAILED == ((HCatException) exc).getErrorType()) 
+        );
   }
 
   public void testHCatDynamicPartitionMaxPartitions() throws Exception {



Mime
View raw message