Search in sources :

Example 11 with IndexerConfig

use of org.nzbhydra.config.IndexerConfig in project nzbhydra2 by theotherp.

the class BinsearchTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    when(configProviderMock.getBaseConfig()).thenReturn(baseConfig);
    testee.config = new IndexerConfig();
    testee.config.setName("binsearch");
    testee.config.setHost("https://www.binsearch.info");
}
Also used : IndexerConfig(org.nzbhydra.config.IndexerConfig) Before(org.junit.Before)

Aggregations

IndexerConfig (org.nzbhydra.config.IndexerConfig)11 Before (org.junit.Before)4 java.util (java.util)2 Collectors (java.util.stream.Collectors)2 Test (org.junit.Test)2 IndexerCategoryConfig (org.nzbhydra.config.IndexerCategoryConfig)2 Newznab (org.nzbhydra.indexers.Newznab)2 Logger (org.slf4j.Logger)2 LoggerFactory (org.slf4j.LoggerFactory)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 Component (org.springframework.stereotype.Component)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 YAMLFactory (com.fasterxml.jackson.dataformat.yaml.YAMLFactory)1 Jdk8Module (com.fasterxml.jackson.datatype.jdk8.Jdk8Module)1 Stopwatch (com.google.common.base.Stopwatch)1 Strings (com.google.common.base.Strings)1 URI (java.net.URI)1 Timestamp (java.sql.Timestamp)1 java.util.concurrent (java.util.concurrent)1 Query (javax.persistence.Query)1