@@ -827,7 +827,7 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
827827 lines.indented {
828828 lines.add(" get(\" ${verifier.stub} \" )" )
829829 lines.indented {
830- lines.add(" .withMetadata(Metadata.metadata().attr(\" ssrf \" , \" ${action.getName()} \" ))" )
830+ lines.add(" .withMetadata(Metadata.metadata().attr(SSRF_METADATA_TAG , \" ${action.getName()} \" ))" )
831831 lines.add(" .atPriority(1)" )
832832 lines.add(" .willReturn(" )
833833 lines.indented {
@@ -859,21 +859,11 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
859859 private fun handleCallbackVerifierRequests (lines : Lines , action : Action , verifier : ActionStubMapping , assertTrue : Boolean ) {
860860 if (assertTrue) {
861861 lines.addSingleCommentLine(" Verifying that the request is successfully made to HttpCallbackVerifier after test execution." )
862- lines.add(" assertTrue(verifierHasServedRequests(${verifier.getVerifierName()} , \" ${action.getName()} \" ))" )
863- // lines.add("assertTrue(${verifier.getVerifierName()}")
862+ lines.add(" assertTrue(verifierHasReceivedRequests(${verifier.getVerifierName()} , \" ${action.getName()} \" ))" )
864863 } else {
865864 lines.addSingleCommentLine(" Verifying that there are no requests made to HttpCallbackVerifier before test execution." )
866- // lines.add("assertFalse(${verifier.getVerifierName()}")
867- lines.add(" assertFalse(verifierHasServedRequests(${verifier.getVerifierName()} , \" ${action.getName()} \" ))" )
868- }
869- // lines.indented {
870- // if (format.isKotlin()) {
871- // lines.add(".allServeEvents")
872- // lines.add(".filter { it.wasMatched && it.stubMapping.metadata != null }")
873- // lines.add(".any { it.stubMapping.metadata.getString(\"ssrf\") == \"${action.getName()}\" }")
874- // }
875- // }
876- // lines.add(")")
865+ lines.add(" assertFalse(verifierHasReceivedRequests(${verifier.getVerifierName()} , \" ${action.getName()} \" ))" )
866+ }
877867 }
878868
879869}
0 commit comments