Search in sources :

Example 16 with TestCaseListener

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

the class ZalgoTextInStringFieldsSanitizeValidateFuzzerTest method setup.

@BeforeEach
void setup() {
    ServiceCaller serviceCaller = Mockito.mock(ServiceCaller.class);
    TestCaseListener testCaseListener = Mockito.mock(TestCaseListener.class);
    FilesArguments filesArguments = Mockito.mock(FilesArguments.class);
    zalgoTextInStringFieldsSanitizeValidateFuzzer = new ZalgoTextInStringFieldsSanitizeValidateFuzzer(serviceCaller, testCaseListener, catsUtil, filesArguments);
    Mockito.when(testCaseListener.isFieldNotADiscriminator(Mockito.anyString())).thenReturn(true);
    Mockito.when(testCaseListener.isFieldNotADiscriminator("pet#type")).thenReturn(false);
}
Also used : FilesArguments(com.endava.cats.args.FilesArguments) ServiceCaller(com.endava.cats.io.ServiceCaller) 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