viclovsky/swagger-coverage

'path_param' is displayed as a missed in cases list at coverage report when used functional call RestAssured::pathParam

adzest opened this issue · 0 comments

I'm submitting a ...

  • bug report

What is the current behavior?

specifing RestAssured.given().filter(new SwaggerCoverageRestAssured()) when used functional call of restassured method:

Map pathParam = new HashMap<String, String>(){{
   put("id", 1);
}};
pathParams.forEach(baseSpec::pathParam);

'path_param' is displayed as a missed in cases list at coverage report.

If the current behavior is a bug, please provide steps to reproduce, broken swagger specification and swagger-coverage-output:

use any spec.

What is the expected behavior?

"id" is displayeв шт report, coz it under the filter(new SwaggerCoverageRestAssured());

What is the motivation / use case for changing the behavior?

java streams are very useful and its generic approach saves time for scaling the test clients.