Class MockStartUrlProviderContext

  • All Implemented Interfaces:
    PluginBaseConfigContext, PluginBaseConfigFileContext, PluginBaseContext, StartUrlProviderContext

    public class MockStartUrlProviderContext
    extends Object
    implements StartUrlProviderContext
    A Mock StartUrlProviderContext that may be used when testing the StartUrlProvider. Example:
    
     StartUrlProviderContext context = new MockStartUrlProviderContext();
     // Set collection config setting 'foo=bar'.
     context.setConfigSetting("foo", "bar");
    
     MockPluginStore pluginStore = new MockPluginStore();
    
     StartUrlProvider underTest = new MyPluginStartUrlProvider();
    
     List<URL> urlList = underTest.extraUrls(context);
     
    • Constructor Detail

      • MockStartUrlProviderContext

        public MockStartUrlProviderContext()