PHOENIX-2410 Move NUM_MILLIS_IN_DAY constant to TestUtil
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/a95d7012 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a95d7012 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a95d7012 Branch: refs/heads/txn Commit: a95d701226a362feca04c68f8462c7a095493fd3 Parents: 6f05484 Author: James Taylor <[email protected]> Authored: Thu Nov 12 17:04:23 2015 -0800 Committer: James Taylor <[email protected]> Committed: Thu Nov 12 17:04:23 2015 -0800 ---------------------------------------------------------------------- .../java/org/apache/phoenix/end2end/index/IndexExpressionIT.java | 3 +-- phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/a95d7012/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexExpressionIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexExpressionIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexExpressionIT.java index c193ee6..e3d1db7 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexExpressionIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexExpressionIT.java @@ -12,6 +12,7 @@ package org.apache.phoenix.end2end.index; import static org.apache.phoenix.util.TestUtil.INDEX_DATA_SCHEMA; import static org.apache.phoenix.util.TestUtil.INDEX_DATA_TABLE; import static org.apache.phoenix.util.TestUtil.MUTABLE_INDEX_DATA_TABLE; +import static org.apache.phoenix.util.TestUtil.NUM_MILLIS_IN_DAY; import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; @@ -41,8 +42,6 @@ import org.junit.Test; public class IndexExpressionIT extends BaseHBaseManagedTimeIT { - private static final int NUM_MILLIS_IN_DAY = 86400000; - @Test public void testImmutableIndexCreateAndUpdate() throws Exception { helpTestCreateAndUpdate(false, false); http://git-wip-us.apache.org/repos/asf/phoenix/blob/a95d7012/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java index 1d56dba..0fb9473 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java @@ -208,6 +208,7 @@ public class TestUtil { public static final String JOIN_SUPPLIER_TABLE_DISPLAY_NAME = JOIN_SCHEMA + "." + JOIN_SUPPLIER_TABLE; public static final String JOIN_COITEM_TABLE_DISPLAY_NAME = JOIN_SCHEMA + "." + JOIN_COITEM_TABLE; public static final String BINARY_NAME = "BinaryTable"; + public static final int NUM_MILLIS_IN_DAY = 86400000; /** * Read-only properties used by all tests
