Search in sources :

Example 1 with TestCaseListener

use of com.endava.cats.report.TestCaseListener in project cats by Endava.

the class ZalgoTextInHeadersFuzzerTest method setup.

@BeforeEach
void setup() {
    ServiceCaller serviceCaller = Mockito.mock(ServiceCaller.class);
    TestCaseListener testCaseListener = Mockito.mock(TestCaseListener.class);
    zalgoTextInHeadersFuzzer = new ZalgoTextInHeadersFuzzer(serviceCaller, testCaseListener);
}
Also used : ServiceCaller(com.endava.cats.io.ServiceCaller) TestCaseListener(com.endava.cats.report.TestCaseListener) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with TestCaseListener

use of com.endava.cats.report.TestCaseListener 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);
}
Also used : IgnoreArguments(com.endava.cats.args.IgnoreArguments) ExecutionStatisticsListener(com.endava.cats.report.ExecutionStatisticsListener) ReportingArguments(com.endava.cats.args.ReportingArguments) CatsGlobalContext(com.endava.cats.model.CatsGlobalContext) TestCaseExporter(com.endava.cats.report.TestCaseExporter) TestCaseListener(com.endava.cats.report.TestCaseListener) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with TestCaseListener

use of com.endava.cats.report.TestCaseListener 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);
}
Also used : IgnoreArguments(com.endava.cats.args.IgnoreArguments) ExecutionStatisticsListener(com.endava.cats.report.ExecutionStatisticsListener) ReportingArguments(com.endava.cats.args.ReportingArguments) CatsGlobalContext(com.endava.cats.model.CatsGlobalContext) TestCaseExporter(com.endava.cats.report.TestCaseExporter) TestCaseListener(com.endava.cats.report.TestCaseListener) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 4 with TestCaseListener

use of com.endava.cats.report.TestCaseListener 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);
}
Also used : IgnoreArguments(com.endava.cats.args.IgnoreArguments) ExecutionStatisticsListener(com.endava.cats.report.ExecutionStatisticsListener) ReportingArguments(com.endava.cats.args.ReportingArguments) CatsGlobalContext(com.endava.cats.model.CatsGlobalContext) TestCaseExporter(com.endava.cats.report.TestCaseExporter) TestCaseListener(com.endava.cats.report.TestCaseListener) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 5 with TestCaseListener

use of com.endava.cats.report.TestCaseListener 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);
}
Also used : IgnoreArguments(com.endava.cats.args.IgnoreArguments) ExecutionStatisticsListener(com.endava.cats.report.ExecutionStatisticsListener) ReportingArguments(com.endava.cats.args.ReportingArguments) CatsGlobalContext(com.endava.cats.model.CatsGlobalContext) TestCaseExporter(com.endava.cats.report.TestCaseExporter) TestCaseListener(com.endava.cats.report.TestCaseListener) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

TestCaseListener (com.endava.cats.report.TestCaseListener)16 BeforeEach (org.junit.jupiter.api.BeforeEach)16 IgnoreArguments (com.endava.cats.args.IgnoreArguments)8 ReportingArguments (com.endava.cats.args.ReportingArguments)8 CatsGlobalContext (com.endava.cats.model.CatsGlobalContext)8 ExecutionStatisticsListener (com.endava.cats.report.ExecutionStatisticsListener)8 TestCaseExporter (com.endava.cats.report.TestCaseExporter)8 ServiceCaller (com.endava.cats.io.ServiceCaller)7 FilesArguments (com.endava.cats.args.FilesArguments)6 File (java.io.File)1