Class MockKillByExactMatchConsumer
- java.lang.Object
-
- com.funnelback.plugin.index.consumers.mock.MockKillByExactMatchConsumer
-
- All Implemented Interfaces:
KillByExactMatchConsumer
public class MockKillByExactMatchConsumer extends Object implements KillByExactMatchConsumer
A mockKillByExactMatchConsumerthat may be used when testingIndexingConfigProvider.killByExactMatch(IndexConfigProviderContext, KillByExactMatchConsumer). Example:MockIndexConfigProviderContext mockContext = new MockIndexConfigProviderContext(); MockKillByExactMatchConsumer mockConsumer = new MockKillByExactMatchConsumer(); ExamplePluginIndexingConfigProvider underTest = new ExamplePluginIndexingConfigProvider(); underTest.killByExactMatch(mockContext, mockConsumer); Assert.assertTrue("Assert something useful.", mockConsumer.getInvocations().size() >= 0);
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMockKillByExactMatchConsumer.MockKillByExactMatchInvocationHolds the values thatkillByExactMatch(String)was called with.
-
Field Summary
Fields Modifier and Type Field Description private List<MockKillByExactMatchConsumer.MockKillByExactMatchInvocation>invocationsHold the values of all invocations ofkillByExactMatch(String).
-
Constructor Summary
Constructors Constructor Description MockKillByExactMatchConsumer()
-
-
-
Field Detail
-
invocations
private final List<MockKillByExactMatchConsumer.MockKillByExactMatchInvocation> invocations
Hold the values of all invocations ofkillByExactMatch(String).
-
-
Method Detail
-
killByExactMatch
public void killByExactMatch(String urlToKillByExactMatch) throws IllegalArgumentException
- Specified by:
killByExactMatchin interfaceKillByExactMatchConsumer- Throws:
IllegalArgumentException
-
-