Skip to content

Instantly share code, notes, and snippets.

@with-heart
Created July 24, 2017 00:15
Show Gist options
  • Save with-heart/57f2a8aebc1a71cafaa1375b6db5a975 to your computer and use it in GitHub Desktop.
Save with-heart/57f2a8aebc1a71cafaa1375b6db5a975 to your computer and use it in GitHub Desktop.
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