Created
July 24, 2017 00:15
-
-
Save with-heart/57f2a8aebc1a71cafaa1375b6db5a975 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
class QueryParamsDecryptionFilterTest { | |
private val filter = QueryParamsDecryptionFilter() | |
private val request = MockHttpServletRequest() | |
@Before | |
fun init() { | |
val ctx = RequestContext.getCurrentContext() | |
ctx.clear() | |
ctx.request = request | |
} | |
@Test | |
fun `basic properties`() { | |
assertEquals(false, filter.shouldFilter()) | |
assertEquals(1, filter.filterOrder()) | |
assertEquals("pre", filter.filterType()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment