Class MockKillByPartialMatchConsumer
- java.lang.Object
-
- com.funnelback.plugin.index.consumers.mock.MockKillByPartialMatchConsumer
-
- All Implemented Interfaces:
KillByPartialMatchConsumer
public class MockKillByPartialMatchConsumer extends Object implements KillByPartialMatchConsumer
A mockKillByPartialMatchConsumer
that may be used when testingIndexingConfigProvider.killByPartialMatch(IndexConfigProviderContext, KillByPartialMatchConsumer)
. Example:MockIndexConfigProviderContext mockContext = new MockIndexConfigProviderContext(); MockKillByPartialMatchConsumer mockConsumer = new MockKillByPartialMatchConsumer(); ExamplePluginIndexingConfigProvider underTest = new ExamplePluginIndexingConfigProvider(); underTest.killByPartialMatch(mockContext, mockConsumer); Assert.assertTrue("Assert something useful.", mockConsumer.getInvocations().size() >= 0);
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockKillByPartialMatchConsumer.MockKillByPartialMatchInvocation
Holds the values thatkillByPartialMatch(String)
was called with.
-
Field Summary
Fields Modifier and Type Field Description private List<MockKillByPartialMatchConsumer.MockKillByPartialMatchInvocation>
invocations
Hold the values of all invocations ofkillByPartialMatch(String)
.
-
Constructor Summary
Constructors Constructor Description MockKillByPartialMatchConsumer()
-
-
-
Field Detail
-
invocations
private final List<MockKillByPartialMatchConsumer.MockKillByPartialMatchInvocation> invocations
Hold the values of all invocations ofkillByPartialMatch(String)
.
-
-
Method Detail
-
killByPartialMatch
public void killByPartialMatch(String urlToKillByPartialMatch) throws IllegalArgumentException
- Specified by:
killByPartialMatch
in interfaceKillByPartialMatchConsumer
- Throws:
IllegalArgumentException
-
-