Class MockKillByExactMatchConsumer
- java.lang.Object
-
- com.funnelback.plugin.index.consumers.mock.MockKillByExactMatchConsumer
-
- All Implemented Interfaces:
com.funnelback.plugin.index.consumers.KillByExactMatchConsumer
public class MockKillByExactMatchConsumer extends Object implements com.funnelback.plugin.index.consumers.KillByExactMatchConsumer
A mockKillByExactMatchConsumer
that 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 class
MockKillByExactMatchConsumer.MockKillByExactMatchInvocation
Holds the values thatkillByExactMatch(String)
was called with.
-
Field Summary
Fields Modifier and Type Field Description private List<MockKillByExactMatchConsumer.MockKillByExactMatchInvocation>
invocations
Hold the values of all invocations ofkillByExactMatch(String)
.
-
Constructor Summary
Constructors Constructor Description MockKillByExactMatchConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MockKillByExactMatchConsumer.MockKillByExactMatchInvocation>
getInvocations()
Hold the values of all invocations ofkillByExactMatch(String)
.void
killByExactMatch(String urlToKillByExactMatch)
-
-
-
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:
killByExactMatch
in interfacecom.funnelback.plugin.index.consumers.KillByExactMatchConsumer
- Throws:
IllegalArgumentException
-
getInvocations
public List<MockKillByExactMatchConsumer.MockKillByExactMatchInvocation> getInvocations()
Hold the values of all invocations ofkillByExactMatch(String)
.
-
-