mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Fix XsdDocumentedTests
This commit is contained in:
parent
e297706e8b
commit
885f074ddf
@ -33,7 +33,7 @@ class XsdDocumentedTests extends Specification {
|
|||||||
@Shared def reference = new File('../docs/manual/src/docs/asciidoc/index.adoc')
|
@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 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 Map<String,Element> elementNameToElement
|
||||||
@Shared GPathResult schemaRootElement
|
@Shared GPathResult schemaRootElement
|
||||||
|
|
||||||
@ -89,8 +89,8 @@ class XsdDocumentedTests extends Specification {
|
|||||||
def 'the latest schema is being validated'() {
|
def 'the latest schema is being validated'() {
|
||||||
when: 'all the schemas are found'
|
when: 'all the schemas are found'
|
||||||
def schemas = schemaDocument.getParentFile().list().findAll { it.endsWith('.xsd') }
|
def schemas = schemaDocument.getParentFile().list().findAll { it.endsWith('.xsd') }
|
||||||
then: 'the count is equal to 8, if not then schemaDocument needs updated'
|
then: 'the count is equal to 11, if not then schemaDocument needs updated'
|
||||||
schemas.size() == 10
|
schemas.size() == 11
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user