Browse Source

Fix XsdDocumentedTests

pull/3965/head
Rob Winch 10 years ago
parent
commit
885f074ddf
  1. 6
      config/src/test/groovy/org/springframework/security/config/doc/XsdDocumentedTests.groovy

6
config/src/test/groovy/org/springframework/security/config/doc/XsdDocumentedTests.groovy

@ -33,7 +33,7 @@ class XsdDocumentedTests extends Specification { @@ -33,7 +33,7 @@ class XsdDocumentedTests extends Specification {
@Shared def reference = new File('../docs/manual/src/docs/asciidoc/index.adoc')
@Shared File schema31xDocument = new File('src/main/resources/org/springframework/security/config/spring-security-3.1.xsd')
@Shared File schemaDocument = new File('src/main/resources/org/springframework/security/config/spring-security-4.1.xsd')
@Shared File schemaDocument = new File('src/main/resources/org/springframework/security/config/spring-security-4.2.xsd')
@Shared Map<String,Element> elementNameToElement
@Shared GPathResult schemaRootElement
@ -89,8 +89,8 @@ class XsdDocumentedTests extends Specification { @@ -89,8 +89,8 @@ class XsdDocumentedTests extends Specification {
def 'the latest schema is being validated'() {
when: 'all the schemas are found'
def schemas = schemaDocument.getParentFile().list().findAll { it.endsWith('.xsd') }
then: 'the count is equal to 8, if not then schemaDocument needs updated'
schemas.size() == 10
then: 'the count is equal to 11, if not then schemaDocument needs updated'
schemas.size() == 11
}
/**

Loading…
Cancel
Save