use of org.zaproxy.zap.extension.ascan.ScanPolicy in project zaproxy by zaproxy.
the class HostProcessUnitTest method setup.
@BeforeEach
void setup() {
Constant.messages = new I18N(Locale.ENGLISH);
rootNode = mock(StructuralNode.class);
given(rootNode.getName()).willReturn("Sites");
hostAndPort = "http://localhost:80";
scanner = mock(Scanner.class);
given(scanner.isInScope(any())).willReturn(true);
scannerParam = mock(ScannerParam.class);
connectionParam = mock(ConnectionParam.class);
pluginFactory = mock(PluginFactory.class);
given(pluginFactory.clone()).willReturn(pluginFactory);
ScanPolicy scanPolicy = mock(ScanPolicy.class);
given(scanPolicy.getPluginFactory()).willReturn(pluginFactory);
hostProcess = new HostProcess(hostAndPort, scanner, scannerParam, connectionParam, scanPolicy, ruleConfigParam);
}
Aggregations