Formatting cleanup

This commit is contained in:
Rob Winch 2013-09-11 15:10:20 -07:00
parent 8e74407381
commit 3c82e63ded
1 changed files with 14 additions and 13 deletions

View File

@ -45,19 +45,20 @@ class MultiHttpBlockConfigTests extends AbstractHttpConfigTests {
e.cause instanceof IllegalArgumentException
}
def duplicatePatternsAreRejected () {
when: "Two <http> elements with the same pattern are used"
xml.http(pattern: '/stateless/**', 'create-session': 'stateless') {
'http-basic'()
}
xml.http(pattern: '/stateless/**') {
'form-login'()
}
createAppContext()
then:
BeanCreationException e = thrown()
e.cause instanceof IllegalArgumentException
}
def duplicatePatternsAreRejected () {
when: "Two <http> elements with the same pattern are used"
xml.http(pattern: '/stateless/**', 'create-session': 'stateless') {
'http-basic'()
}
xml.http(pattern: '/stateless/**') {
'form-login'()
}
createAppContext()
then:
BeanCreationException e = thrown()
e.cause instanceof IllegalArgumentException
}
def namedFilterChainIsExposedAsABean () {