From 980b09d9037c6909895e4d86b9bfcb7d1397a128 Mon Sep 17 00:00:00 2001 From: fjy Date: Tue, 23 Jul 2013 10:19:26 -0700 Subject: [PATCH] fix broken test --- .../com/metamx/druid/master/DruidMasterTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/server/src/test/java/com/metamx/druid/master/DruidMasterTest.java b/server/src/test/java/com/metamx/druid/master/DruidMasterTest.java index 5a42d3e9b91..a49dc85a582 100644 --- a/server/src/test/java/com/metamx/druid/master/DruidMasterTest.java +++ b/server/src/test/java/com/metamx/druid/master/DruidMasterTest.java @@ -24,6 +24,7 @@ import com.metamx.common.concurrent.ScheduledExecutorFactory; import com.metamx.druid.client.DataSegment; import com.metamx.druid.client.DruidServer; import com.metamx.druid.client.SingleServerInventoryView; +import com.metamx.druid.curator.inventory.InventoryManagerConfig; import com.metamx.druid.db.DatabaseSegmentManager; import com.metamx.druid.initialization.ZkPathsConfig; import com.metamx.druid.metrics.NoopServiceEmitter; @@ -169,6 +170,20 @@ public class DruidMasterTest EasyMock.expect(serverInventoryView.getInventoryValue("from")).andReturn(druidServer); EasyMock.expect(serverInventoryView.getInventoryValue("to")).andReturn(druidServer); + EasyMock.expect(serverInventoryView.getInventoryManagerConfig()).andReturn(new InventoryManagerConfig() + { + @Override + public String getContainerPath() + { + return ""; + } + + @Override + public String getInventoryPath() + { + return ""; + } + }); EasyMock.replay(serverInventoryView); master.moveSegment("from", "to", "dummySegment", null);