From ddd828fa1b367099ec1db12af71e8b7f8db8b669 Mon Sep 17 00:00:00 2001 From: Deklan Dieterly Date: Wed, 9 Jul 2014 15:01:54 -0600 Subject: [PATCH] Fix unit test. --- .../mon/infrastructure/persistence/influxdb/UtilsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/hpcloud/mon/infrastructure/persistence/influxdb/UtilsTest.java b/src/test/java/com/hpcloud/mon/infrastructure/persistence/influxdb/UtilsTest.java index 3dbc0fa9e..8196cc8a5 100644 --- a/src/test/java/com/hpcloud/mon/infrastructure/persistence/influxdb/UtilsTest.java +++ b/src/test/java/com/hpcloud/mon/infrastructure/persistence/influxdb/UtilsTest.java @@ -1,6 +1,7 @@ package com.hpcloud.mon.infrastructure.persistence.influxdb; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import org.joda.time.DateTime; @@ -52,7 +53,7 @@ public class UtilsTest { public void whereClauseBuilderBuildDimsPartTest3() throws Exception { String expectedResult = " and foo = 'bar' and biz = 'baz'"; - Map dimsMap = new HashMap<>(); + Map dimsMap = new LinkedHashMap<>(); dimsMap.put("foo", "bar"); dimsMap.put("biz", "baz"); assert (expectedResult.equals(Utils.WhereClauseBuilder.buildDimsPart(dimsMap)));