You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2018/08/09 18:47:06 UTC

calcite git commit: test: update test name current -> javaMajorVersionExceeds6

Repository: calcite
Updated Branches:
  refs/heads/master 7088dc726 -> 0e6733bf8


test: update test name current -> javaMajorVersionExceeds6


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

Branch: refs/heads/master
Commit: 0e6733bf85a32e018f3541761a3e17565c82d5d3
Parents: 7088dc7
Author: Vladimir Sitnikov <si...@gmail.com>
Authored: Thu Aug 9 19:58:31 2018 +0300
Committer: Vladimir Sitnikov <si...@gmail.com>
Committed: Thu Aug 9 21:46:59 2018 +0300

----------------------------------------------------------------------
 core/src/test/java/org/apache/calcite/util/TestUtilTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/0e6733bf/core/src/test/java/org/apache/calcite/util/TestUtilTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/calcite/util/TestUtilTest.java b/core/src/test/java/org/apache/calcite/util/TestUtilTest.java
index 0ccad50..dc2feaf 100644
--- a/core/src/test/java/org/apache/calcite/util/TestUtilTest.java
+++ b/core/src/test/java/org/apache/calcite/util/TestUtilTest.java
@@ -27,9 +27,11 @@ import static org.junit.Assert.assertTrue;
 public class TestUtilTest {
 
   @Test
-  public void current() {
+  public void javaMajorVersionExceeds6() {
     // shouldn't throw any exceptions (for current JDK)
-    assertTrue(TestUtil.getJavaMajorVersion() > 6);
+    int majorVersion = TestUtil.getJavaMajorVersion();
+    assertTrue("current JavaMajorVersion == " + majorVersion + " is expected to exceed 6",
+        majorVersion > 6);
   }
 
   @Test