Search in sources :

Example 1 with SearchingConfig

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

the class DuplicateDetectorTest method setUp.

@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    BaseConfig baseConfig = new BaseConfig();
    baseConfig.setSearching(new SearchingConfig());
    baseConfig.getSearching().setDuplicateSizeThresholdInPercent(1F);
    baseConfig.getSearching().setDuplicateAgeThreshold(2F);
    when(configProviderMock.getBaseConfig()).thenReturn(baseConfig);
}
Also used : SearchingConfig(org.nzbhydra.config.SearchingConfig) BaseConfig(org.nzbhydra.config.BaseConfig) Before(org.junit.Before)

Example 2 with SearchingConfig

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

the class NzbsOrgTest method setUp.

@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    BaseConfig baseConfig = new BaseConfig();
    baseConfig.setSearching(new SearchingConfig());
    when(configProviderMock.getBaseConfig()).thenReturn(baseConfig);
}
Also used : SearchingConfig(org.nzbhydra.config.SearchingConfig) BaseConfig(org.nzbhydra.config.BaseConfig) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 BaseConfig (org.nzbhydra.config.BaseConfig)2 SearchingConfig (org.nzbhydra.config.SearchingConfig)2