more specific checks in rule test

This commit is contained in:
Fangjin Yang 2012-12-14 09:12:02 -08:00
parent aa69ed5251
commit 8c7fd3bc49
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ public class DruidMasterRuleRunnerTest
public void testRunTwoTiersTierDoesNotExist() throws Exception
{
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
EasyMock.expectLastCall().atLeastOnce();
EasyMock.expectLastCall().times(12);
EasyMock.replay(emitter);
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(
@ -408,7 +408,7 @@ public class DruidMasterRuleRunnerTest
public void testRunRuleDoesNotExist() throws Exception
{
emitter.emit(EasyMock.<ServiceEventBuilder>anyObject());
EasyMock.expectLastCall().atLeastOnce();
EasyMock.expectLastCall().times(availableSegments.size());
EasyMock.replay(emitter);
EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.<String>anyObject())).andReturn(