jeudi 2 janvier 2020

Junit Testing: Action when methods from specific object is used

I want to write a securitytest that extends a existing webservicetest.
The webservicetest makes api calls (apiclient), that are generated from a swagger file.
I want to execute the existing webservicetests and look, if all headers from the response are correct.
There may be multiple responses in a single webservicetest.

Something like:

public void testblaSec() throws ApiException {
    doWebserviceTest1();
    blaApi.* was called --> doHeadercheck()
}

Aucun commentaire:

Enregistrer un commentaire