Class MockKillByPartialMatchConsumer
- java.lang.Object
-
- com.funnelback.plugin.index.consumers.mock.MockKillByPartialMatchConsumer
-
- All Implemented Interfaces:
com.funnelback.plugin.index.consumers.KillByPartialMatchConsumer
public class MockKillByPartialMatchConsumer extends Object implements com.funnelback.plugin.index.consumers.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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MockKillByPartialMatchConsumer.MockKillByPartialMatchInvocation>
getInvocations()
Hold the values of all invocations ofkillByPartialMatch(String)
.void
killByPartialMatch(String urlToKillByPartialMatch)
-
-
-
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 interfacecom.funnelback.plugin.index.consumers.KillByPartialMatchConsumer
- Throws:
IllegalArgumentException
-
getInvocations
public List<MockKillByPartialMatchConsumer.MockKillByPartialMatchInvocation> getInvocations()
Hold the values of all invocations ofkillByPartialMatch(String)
.
-
-