incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [30/30] git commit: Worked on some unit tests
Date Thu, 07 Nov 2013 02:41:53 GMT
Worked on some unit tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/019d7163
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/019d7163
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/019d7163

Branch: refs/heads/blur-console-v2
Commit: 019d7163959e85092b91b9f49e9b5f4565a174b5
Parents: 518d0ac
Author: Chris Rohr <crohr@nearinfinity.com>
Authored: Wed Nov 6 21:41:27 2013 -0500
Committer: Chris Rohr <crohr@nearinfinity.com>
Committed: Wed Nov 6 21:41:27 2013 -0500

----------------------------------------------------------------------
 .../src/test/java/org/apache/blur/console/util/ConfigTest.java  | 5 +++++
 .../test/java/org/apache/blur/console/util/NodeUtilTest.java    | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/019d7163/contrib/blur-console/src/test/java/org/apache/blur/console/util/ConfigTest.java
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/test/java/org/apache/blur/console/util/ConfigTest.java
b/contrib/blur-console/src/test/java/org/apache/blur/console/util/ConfigTest.java
index 3bc56e6..3d2c922 100644
--- a/contrib/blur-console/src/test/java/org/apache/blur/console/util/ConfigTest.java
+++ b/contrib/blur-console/src/test/java/org/apache/blur/console/util/ConfigTest.java
@@ -51,4 +51,9 @@ public class ConfigTest extends ConsoleTestBase {
 	public void testGetConnectionString() throws IOException {
 		assertTrue(StringUtils.contains(Config.getConnectionString(), InetAddress.getLocalHost().getHostName()));
 	}
+	
+	@Test
+	public void testGetZookeeper() {
+		assertNotNull(Config.getZookeeper());
+	}
 }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/019d7163/contrib/blur-console/src/test/java/org/apache/blur/console/util/NodeUtilTest.java
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/test/java/org/apache/blur/console/util/NodeUtilTest.java
b/contrib/blur-console/src/test/java/org/apache/blur/console/util/NodeUtilTest.java
index 0ec5811..e122f07 100644
--- a/contrib/blur-console/src/test/java/org/apache/blur/console/util/NodeUtilTest.java
+++ b/contrib/blur-console/src/test/java/org/apache/blur/console/util/NodeUtilTest.java
@@ -63,7 +63,7 @@ public class NodeUtilTest extends ConsoleTestBase {
 		
 		List<Map<String, int[][]>> chartData = (List<Map<String, int[][]>>)
nodeStatus.get(0).get("chart");
 		
-		assertEquals(1, chartData.get(0).get("data")[0][1]);
-		assertEquals(0, chartData.get(1).get("data")[0][1]);
+		assertEquals(0, chartData.get(0).get("data")[0][1]);
+		assertEquals(2, chartData.get(1).get("data")[0][1]);
 	}
 }


Mime
View raw message