mirror of https://github.com/apache/druid.git
more specific checks in rule test
This commit is contained in:
parent
aa69ed5251
commit
8c7fd3bc49
|
@ -357,7 +357,7 @@ public class DruidMasterRuleRunnerTest
|
||||||
public void testRunTwoTiersTierDoesNotExist() throws Exception
|
public void testRunTwoTiersTierDoesNotExist() throws Exception
|
||||||
{
|
{
|
||||||
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
|
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
|
||||||
EasyMock.expectLastCall().atLeastOnce();
|
EasyMock.expectLastCall().times(12);
|
||||||
EasyMock.replay(emitter);
|
EasyMock.replay(emitter);
|
||||||
|
|
||||||
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(
|
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(
|
||||||
|
@ -408,7 +408,7 @@ public class DruidMasterRuleRunnerTest
|
||||||
public void testRunRuleDoesNotExist() throws Exception
|
public void testRunRuleDoesNotExist() throws Exception
|
||||||
{
|
{
|
||||||
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
|
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
|
||||||
EasyMock.expectLastCall().atLeastOnce();
|
EasyMock.expectLastCall().times(availableSegments.size());
|
||||||
EasyMock.replay(emitter);
|
EasyMock.replay(emitter);
|
||||||
|
|
||||||
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(
|
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(
|
||||||
|
|
Loading…
Reference in New Issue