use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class FunctionalFuzzerTest 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);
functionalFuzzer = new FunctionalFuzzer(filesArguments, customFuzzerUtil);
filesArguments.getCustomFuzzerDetails().clear();
ReflectionTestUtils.setField(testCaseListener, "testCaseExporter", Mockito.mock(TestCaseExporter.class));
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class RecommendedHttpCodesContractInfoFuzzerTest 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)));
recommendedHttpCodesContractInfoFuzzer = new RecommendedHttpCodesContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class SecuritySchemesContractInfoFuzzerTest 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)));
securitySchemesContractInfoFuzzer = new SecuritySchemesContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class TopLevelElementsContractInfoFuzzerTest 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)));
topLevelElementsContractInfoFuzzer = new TopLevelElementsContractInfoFuzzer(testCaseListener);
}
use of com.endava.cats.report.TestCaseExporter in project cats by Endava.
the class VersionsContractInfoFuzzerTest 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)));
versionsContractInfoFuzzer = new VersionsContractInfoFuzzer(testCaseListener);
}
Aggregations