From 658b159c8abb64b493bfe5d787cca3578fd46732 Mon Sep 17 00:00:00 2001 From: mallocator Date: Mon, 1 Apr 2013 15:51:18 -0700 Subject: [PATCH] - Added test for null string normalization --- src/test/java/org/elasticsearch/river/hbase/HBaseRiverTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/river/hbase/HBaseRiverTest.java b/src/test/java/org/elasticsearch/river/hbase/HBaseRiverTest.java index 8d015eb..94f951d 100644 --- a/src/test/java/org/elasticsearch/river/hbase/HBaseRiverTest.java +++ b/src/test/java/org/elasticsearch/river/hbase/HBaseRiverTest.java @@ -38,5 +38,6 @@ boolean isNormalizeFields() { Assert.assertEquals(river.normalizeField("a_b"), "a_b"); Assert.assertEquals(river.normalizeField("90aS"), "90as"); Assert.assertEquals(river.normalizeField("&*($@#!ui^&$(#:\"8ui"), "ui8ui"); + Assert.assertEquals(river.normalizeField(null), null); } }