From 3c5ca3a5f2f022d2c0bbc26c305befc5769cebb0 Mon Sep 17 00:00:00 2001 From: Charles Allen Date: Wed, 20 Jan 2016 08:35:13 -0800 Subject: [PATCH] Make GranularityPathSpecTest check with lower-case enums --- .../java/io/druid/indexer/path/GranularityPathSpecTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/path/GranularityPathSpecTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/path/GranularityPathSpecTest.java index 77e31e79fe1..da683e0d3b9 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/path/GranularityPathSpecTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/path/GranularityPathSpecTest.java @@ -172,7 +172,8 @@ public class GranularityPathSpecTest sb.append(pathFormat); sb.append("\","); sb.append("\"dataGranularity\" : \""); - sb.append(granularity.toString()); + // Double-check Jackson's lower-case enum support + sb.append(granularity.toString().toLowerCase()); sb.append("\","); if(inputFormat != null) { sb.append("\"inputFormat\" : \"");