use of com.endava.cats.io.ServiceCaller 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);
}
use of com.endava.cats.io.ServiceCaller 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));
}
use of com.endava.cats.io.ServiceCaller 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.io.ServiceCaller in project cats by Endava.
the class AbugidasCharsInHeadersFuzzerTest method setup.
@BeforeEach
void setup() {
ServiceCaller serviceCaller = Mockito.mock(ServiceCaller.class);
TestCaseListener testCaseListener = Mockito.mock(TestCaseListener.class);
abugidasCharsInHeadersFuzzer = new AbugidasCharsInHeadersFuzzer(serviceCaller, testCaseListener);
}
use of com.endava.cats.io.ServiceCaller in project cats by Endava.
the class AbugidasCharsInStringFieldsSanitizeValidateFuzzerTest method setup.
@BeforeEach
void setup() {
ServiceCaller serviceCaller = Mockito.mock(ServiceCaller.class);
TestCaseListener testCaseListener = Mockito.mock(TestCaseListener.class);
FilesArguments filesArguments = Mockito.mock(FilesArguments.class);
abugidasCharsInStringFieldsSanitizeValidateFuzzer = new AbugidasCharsInStringFieldsSanitizeValidateFuzzer(serviceCaller, testCaseListener, catsUtil, filesArguments);
Mockito.when(testCaseListener.isFieldNotADiscriminator(Mockito.anyString())).thenReturn(true);
Mockito.when(testCaseListener.isFieldNotADiscriminator("pet#type")).thenReturn(false);
}
Aggregations