incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twilli...@apache.org
Subject git commit: use idiomatic junit
Date Mon, 22 Sep 2014 00:49:39 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master ce7fecc5d -> e32487266


use idiomatic junit


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e3248726
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e3248726
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e3248726

Branch: refs/heads/master
Commit: e3248726621d6675e00a21ca4a76022a51116957
Parents: ce7fecc
Author: twilliams <twilliams@apache.org>
Authored: Sun Sep 21 20:49:30 2014 -0400
Committer: twilliams <twilliams@apache.org>
Committed: Sun Sep 21 20:49:30 2014 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/blur/command/BlurArrayTest.java    | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e3248726/blur-core/src/test/java/org/apache/blur/command/BlurArrayTest.java
----------------------------------------------------------------------
diff --git a/blur-core/src/test/java/org/apache/blur/command/BlurArrayTest.java b/blur-core/src/test/java/org/apache/blur/command/BlurArrayTest.java
index 44888e6..6bd0477 100644
--- a/blur-core/src/test/java/org/apache/blur/command/BlurArrayTest.java
+++ b/blur-core/src/test/java/org/apache/blur/command/BlurArrayTest.java
@@ -34,15 +34,10 @@ public class BlurArrayTest {
     assertEquals("v", array.getObject(0));
   }
 
-  @Test
+  @Test(expected=IndexOutOfBoundsException.class)
   public void testArrayOutOfBounds() {
     BlurArray array = new BlurArray();
-    try {
-      array.getObject(123);
-      fail();
-    } catch (IndexOutOfBoundsException e) {
-      // Pass
-    }
+    array.getObject(123);
   }
 
   @Test


Mime
View raw message