From a5f98be4578891f9e3c73a6ccfa8bf2edacba087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Thu, 6 Nov 2014 17:18:40 -0800 Subject: [PATCH] remove unused code --- .../metadata/SQLMetadataConnectorTest.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/server/src/test/java/io/druid/metadata/SQLMetadataConnectorTest.java b/server/src/test/java/io/druid/metadata/SQLMetadataConnectorTest.java index 3c6186c2af5..64d3c0f4674 100644 --- a/server/src/test/java/io/druid/metadata/SQLMetadataConnectorTest.java +++ b/server/src/test/java/io/druid/metadata/SQLMetadataConnectorTest.java @@ -18,9 +18,7 @@ */ package io.druid.metadata; -import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Suppliers; -import io.druid.jackson.DefaultObjectMapper; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -32,22 +30,13 @@ import java.util.LinkedList; public class SQLMetadataConnectorTest { - private static final ObjectMapper jsonMapper = new DefaultObjectMapper(); private TestDerbyConnector connector; private MetadataStorageTablesConfig tablesConfig = MetadataStorageTablesConfig.fromBase("test"); @Before public void setUp() throws Exception { - MetadataStorageConnectorConfig config = jsonReadWriteRead( - "{" - + "\"type\" : \"db\",\n" - + "\"segmentTable\" : \"segments\"\n" - + "}", - MetadataStorageConnectorConfig.class - ); - connector = new TestDerbyConnector( - Suppliers.ofInstance(config), + Suppliers.ofInstance(new MetadataStorageConnectorConfig()), Suppliers.ofInstance(tablesConfig) ); } @@ -131,9 +120,4 @@ public class SQLMetadataConnectorTest } ); } - - private T jsonReadWriteRead(String s, Class klass) throws Exception - { - return jsonMapper.readValue(jsonMapper.writeValueAsBytes(jsonMapper.readValue(s, klass)), klass); - } }