Created
July 24, 2017 00:04
-
-
Save with-heart/362b1488343f74ffac9f57b2b8c9548d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Test | |
fun `should replace encrypted string in uri with decrypted value`() { | |
val encrypted = "ABCDEFG123456" | |
val decrypted = encrypted.reversed() | |
val startUri = "/endpoint/$encrypted" | |
request.requestURI = startUri | |
filter.run() | |
val ctx = RequestContext.getCurrentContext() | |
val endUri = ctx.request.requestURI | |
assertEquals( | |
"/endpoint/$decrypted", | |
endUri | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment