-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency com.github.tomakehurst:wiremock-jre8 to …
…v3 (#200) * fix(deps): update dependency com.github.tomakehurst:wiremock-jre8 to v3 * fix wiremock warnings * fix wiremock warnings * use wiremock standalone instead of wiremock since spring-boot jetty deps are affected by it * remove unncessary overriding --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Oguzhan Soykan <[email protected]>
- Loading branch information
1 parent
10cfed5
commit 1f1ca59
Showing
8 changed files
with
26 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...remock/src/main/kotlin/com/trendyol/stove/testing/e2e/wiremock/WireMockRequestListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package com.trendyol.stove.testing.e2e.wiremock | ||
|
||
import com.github.tomakehurst.wiremock.core.Admin | ||
import com.github.tomakehurst.wiremock.extension.PostServeAction | ||
import com.github.tomakehurst.wiremock.extension.Parameters | ||
import com.github.tomakehurst.wiremock.extension.ServeEventListener | ||
import com.github.tomakehurst.wiremock.stubbing.ServeEvent | ||
import com.github.tomakehurst.wiremock.stubbing.StubMapping | ||
import java.util.UUID | ||
import java.util.* | ||
import java.util.concurrent.ConcurrentMap | ||
|
||
class WireMockRequestListener( | ||
private val stubLog: ConcurrentMap<UUID, StubMapping>, | ||
private val afterRequest: AfterRequestHandler | ||
) : PostServeAction() { | ||
) : ServeEventListener { | ||
override fun getName(): String = WireMockRequestListener::class.java.simpleName | ||
|
||
override fun doGlobalAction( | ||
serveEvent: ServeEvent, | ||
admin: Admin | ||
): Unit = afterRequest(serveEvent, admin, stubLog) | ||
override fun beforeResponseSent( | ||
serveEvent: ServeEvent?, | ||
parameters: Parameters? | ||
): Unit = afterRequest(serveEvent!!, stubLog) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters