tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyun...@apache.org
Subject git commit: Fixed a missed compilation error in TestValidators.
Date Tue, 28 Oct 2014 00:50:07 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 7a6576355 -> b3749a093


Fixed a missed compilation error in TestValidators.


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

Branch: refs/heads/master
Commit: b3749a0931e4e2c5447d9ce4cdfe43245300ef61
Parents: 7a65763
Author: Hyunsik Choi <hyunsik@apache.org>
Authored: Mon Oct 27 17:49:42 2014 -0700
Committer: Hyunsik Choi <hyunsik@apache.org>
Committed: Mon Oct 27 17:49:42 2014 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/tajo/validation/TestValidators.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/b3749a09/tajo-common/src/test/java/org/apache/tajo/validation/TestValidators.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/test/java/org/apache/tajo/validation/TestValidators.java b/tajo-common/src/test/java/org/apache/tajo/validation/TestValidators.java
index 1da3591..a347bad 100644
--- a/tajo-common/src/test/java/org/apache/tajo/validation/TestValidators.java
+++ b/tajo-common/src/test/java/org/apache/tajo/validation/TestValidators.java
@@ -75,8 +75,8 @@ public class TestValidators {
     
     assertThat(new NotNullValidator().validateInternal(testValue), is(false));
     assertThat(new NotNullValidator().validate(testValue).size(), is(1));
-    assertThat(new NotNullValidator().validate(testValue),
-        CoreMatchers.hasItem(hasAClass(equalTo(NotNullValidator.class))));
+    Matcher<Iterable<? super ConstraintViolation>> matcher =  hasItem(hasAClass(equalTo(NotNullValidator.class)));
+    assertThat(new NotNullValidator().validate(testValue), matcher);
   }
 
   @Test


Mime
View raw message