Class MockQieByUrlConsumer

  • All Implemented Interfaces:
    com.funnelback.plugin.index.consumers.QieByUrlConsumer

    public class MockQieByUrlConsumer
    extends Object
    implements com.funnelback.plugin.index.consumers.QieByUrlConsumer
    A mock QieByQueryConsumer that may be used when testing IndexingConfigProvider.supplyQieByURL(IndexConfigProviderContext, QieByUrlConsumer). Example:
    
     MockIndexConfigProviderContext mockContext = new MockIndexConfigProviderContext();
     MockQieByUrlConsumer mockConsumer = new MockQieByUrlConsumer();
     ExamplePluginIndexingConfigProvider underTest = new ExamplePluginIndexingConfigProvider();
     
     underTest.supplyQieByUrl(mockContext, mockConsumer);
     
     Assert.assertTrue("Assert something useful.", mockConsumer.getInvocations().size() >= 0);