From 5b18c4822f505a829a804ef8fbc396f96a97e794 Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Fri, 23 Nov 2012 02:38:33 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[LUCYSUS-1744]?= =?UTF-8?q?=20maven=20test=EA=B0=80=20=EC=A0=95=EC=83=81=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=8F=8C=EC=95=84=EA=B0=80=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@904 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../nhn/hippo/web/performance/TestSuite.java | 4 +- .../web/service/FlowChartServiceImplTest.java | 70 ++++++++++--------- src/test/resources/test-hbase.properties | 4 +- 3 files changed, 42 insertions(+), 36 deletions(-) diff --git a/src/test/java/com/nhn/hippo/web/performance/TestSuite.java b/src/test/java/com/nhn/hippo/web/performance/TestSuite.java index cd67ef41f..1ea28fb08 100644 --- a/src/test/java/com/nhn/hippo/web/performance/TestSuite.java +++ b/src/test/java/com/nhn/hippo/web/performance/TestSuite.java @@ -4,6 +4,7 @@ import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; +import org.junit.Ignore; import org.junit.Test; import java.io.IOException; @@ -11,8 +12,9 @@ import java.io.IOException; /** * */ +@Ignore public class TestSuite { - @Test + // @Test public void insertData() throws IOException, InterruptedException { diff --git a/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java b/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java index 2163614cb..160c5faa2 100644 --- a/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java +++ b/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java @@ -12,55 +12,57 @@ import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.util.Bytes; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import com.profiler.common.hbase.HBaseClient; +@Ignore public class FlowChartServiceImplTest { - private static final String TABLE_NAME = "ttt"; + private static final String TABLE_NAME = "ttt"; - private static HBaseClient client; + private static HBaseClient client; - @BeforeClass - public static void init() { - client = new HBaseClient("localhost", "2181", 2); - Assert.assertNotNull(client); - } + @BeforeClass + public static void init() { + client = new HBaseClient("localhost", "2181", 2); + Assert.assertNotNull(client); + } - @AfterClass - public static void destroy() { - client.close(); - } + @AfterClass + public static void destroy() { + client.close(); + } - @Test - public void hbase() { - List gets = new ArrayList(1); - gets.add(new Get("row1".getBytes())); + @Test + public void hbase() { + List gets = new ArrayList(1); + gets.add(new Get("row1".getBytes())); - Result[] results = client.get(TABLE_NAME, gets); + Result[] results = client.get(TABLE_NAME, gets); - for (Result r : results) { - NavigableMap>> map = r.getMap(); + for (Result r : results) { + NavigableMap>> map = r.getMap(); - for (Entry>> entry : map.entrySet()) { - byte[] family = entry.getKey(); - System.out.println("family=" + Bytes.toString(family)); + for (Entry>> entry : map.entrySet()) { + byte[] family = entry.getKey(); + System.out.println("family=" + Bytes.toString(family)); - NavigableMap> values = entry.getValue(); + NavigableMap> values = entry.getValue(); - for (Entry> value : values.entrySet()) { - byte[] colname = value.getKey(); - System.out.println("colname=" + Bytes.toString(colname)); + for (Entry> value : values.entrySet()) { + byte[] colname = value.getKey(); + System.out.println("colname=" + Bytes.toString(colname)); - NavigableMap valueSeries = value.getValue(); + NavigableMap valueSeries = value.getValue(); - for (Entry v : valueSeries.entrySet()) { - byte[] vv = v.getValue(); - System.out.println("value=" + Bytes.toString(vv)); - } - } - } - } - } + for (Entry v : valueSeries.entrySet()) { + byte[] vv = v.getValue(); + System.out.println("value=" + Bytes.toString(vv)); + } + } + } + } + } } diff --git a/src/test/resources/test-hbase.properties b/src/test/resources/test-hbase.properties index 409edad0a..3477b7c40 100644 --- a/src/test/resources/test-hbase.properties +++ b/src/test/resources/test-hbase.properties @@ -1,4 +1,6 @@ #hbase.client.host=localhost hbase.client.host=10.25.131.38 -hbase.client.port=2181 \ No newline at end of file +hbase.client.port=2181 + +hbase.htable.threads.max=32 \ No newline at end of file