Repository: kylin Updated Branches: refs/heads/yang22 440d415a5 -> f931a6aec
minor, fix UT Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/f931a6ae Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/f931a6ae Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/f931a6ae Branch: refs/heads/yang22 Commit: f931a6aec7ae612b919aa9d93b594ca34d6123e6 Parents: 440d415 Author: Billy Liu <billy...@apache.org> Authored: Tue Dec 27 00:02:35 2016 +0800 Committer: Billy Liu <billy...@apache.org> Committed: Tue Dec 27 00:13:47 2016 +0800 ---------------------------------------------------------------------- .../kylin/dict/DictionaryProviderTest.java | 36 +++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/f931a6ae/core-dictionary/src/test/java/org/apache/kylin/dict/DictionaryProviderTest.java ---------------------------------------------------------------------- diff --git a/core-dictionary/src/test/java/org/apache/kylin/dict/DictionaryProviderTest.java b/core-dictionary/src/test/java/org/apache/kylin/dict/DictionaryProviderTest.java index a4aee76..4b386a7 100644 --- a/core-dictionary/src/test/java/org/apache/kylin/dict/DictionaryProviderTest.java +++ b/core-dictionary/src/test/java/org/apache/kylin/dict/DictionaryProviderTest.java @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ + package org.apache.kylin.dict; import static org.junit.Assert.assertTrue; @@ -13,13 +31,23 @@ import java.util.Iterator; import org.apache.kylin.common.util.ClassUtil; import org.apache.kylin.common.util.Dictionary; +import org.apache.kylin.common.util.LocalFileMetadataTestCase; import org.apache.kylin.metadata.datatype.DataType; +import org.junit.After; +import org.junit.Before; import org.junit.Test; -/** - * Created by xiefan on 16-11-23. - */ -public class DictionaryProviderTest { +public class DictionaryProviderTest extends LocalFileMetadataTestCase{ + + @Before + public void setUp() throws Exception { + this.createTestMetadata(); + } + + @After + public void after() throws Exception { + this.cleanupTestMetadata(); + } @Test public void testReadWrite() throws Exception {