use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class HttpStatusCodeInValidRangeContractInfoFuzzerTest method setup.
@BeforeEach
void setup() {
Instance<TestCaseExporter> exporters = Mockito.mock(Instance.class);
TestCaseExporter exporter = Mockito.mock(TestCaseExporterHtmlJs.class);
Mockito.when(exporters.stream()).thenReturn(Stream.of(exporter));
testCaseListener = Mockito.spy(new TestCaseListener(Mockito.mock(CatsGlobalContext.class), Mockito.mock(ExecutionStatisticsListener.class), exporters, Mockito.mock(IgnoreArguments.class), Mockito.mock(ReportingArguments.class)));
httpStatusCodeInValidRangeContractInfoFuzzer = new HttpStatusCodeInValidRangeContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class XmlContentTypeContractInfoFuzzerTest method setup.
@BeforeEach
void setup() {
Instance<TestCaseExporter> exporters = Mockito.mock(Instance.class);
TestCaseExporter exporter = Mockito.mock(TestCaseExporterHtmlJs.class);
Mockito.when(exporters.stream()).thenReturn(Stream.of(exporter));
testCaseListener = Mockito.spy(new TestCaseListener(Mockito.mock(CatsGlobalContext.class), Mockito.mock(ExecutionStatisticsListener.class), exporters, Mockito.mock(IgnoreArguments.class), Mockito.mock(ReportingArguments.class)));
xmlContentTypeContractInfoFuzzer = new XmlContentTypeContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class PathTagsContractInfoFuzzerTest method setup.
@BeforeEach
void setup() {
Instance<TestCaseExporter> exporters = Mockito.mock(Instance.class);
TestCaseExporter exporter = Mockito.mock(TestCaseExporterHtmlJs.class);
Mockito.when(exporters.stream()).thenReturn(Stream.of(exporter));
testCaseListener = Mockito.spy(new TestCaseListener(Mockito.mock(CatsGlobalContext.class), Mockito.mock(ExecutionStatisticsListener.class), exporters, Mockito.mock(IgnoreArguments.class), Mockito.mock(ReportingArguments.class)));
pathTagsContractInfoFuzzer = new PathTagsContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class RecommendedHeadersContractInfoFuzzerTest method setup.
@BeforeEach
void setup() {
Instance<TestCaseExporter> exporters = Mockito.mock(Instance.class);
TestCaseExporter exporter = Mockito.mock(TestCaseExporterHtmlJs.class);
Mockito.when(exporters.stream()).thenReturn(Stream.of(exporter));
testCaseListener = Mockito.spy(new TestCaseListener(Mockito.mock(CatsGlobalContext.class), Mockito.mock(ExecutionStatisticsListener.class), exporters, Mockito.mock(IgnoreArguments.class), Mockito.mock(ReportingArguments.class)));
recommendedHeadersContractInfoFuzzer = new RecommendedHeadersContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class SecurityFuzzerTest method setup.
@BeforeEach
void setup() {
catsDSLParser = new CatsDSLParser();
catsUtil = new CatsUtil(catsDSLParser);
serviceCaller = Mockito.mock(ServiceCaller.class);
filesArguments = new FilesArguments(catsUtil);
customFuzzerUtil = new CustomFuzzerUtil(serviceCaller, catsUtil, testCaseListener, catsDSLParser);
securityFuzzer = new SecurityFuzzer(filesArguments, customFuzzerUtil);
ReflectionTestUtils.setField(testCaseListener, "testCaseExporter", Mockito.mock(TestCaseExporter.class));
}
Aggregations