use of org.nzbhydra.mapping.newznab.caps.CapsSearching in project nzbhydra2 by theotherp.
the class NewznabCheckerTest method setUp.
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
indexerConfig = new IndexerConfig();
indexerConfig.setHost("http://127.0.0.1:1234");
indexerConfig.setApiKey("apikey");
when(searchingConfig.getTimeout()).thenReturn(1);
when(configProviderMock.getBaseConfig()).thenReturn(baseConfig);
when(baseConfig.getSearching()).thenReturn(searchingConfig);
capsRoot = new CapsRoot();
capsRoot.setSearching(new CapsSearching());
CapsLimits capsLimits = new CapsLimits(200, 100);
capsRoot.setLimits(capsLimits);
when(indexerWebAccess.get(new URI("http://127.0.0.1:1234/api?apikey=apikey&t=caps"), indexerConfig)).thenReturn(capsRoot);
testee.PAUSE_BETWEEN_CALLS = 0;
}
Aggregations