mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Update XsdDocumentedTests to make easier to understand problems
This commit is contained in:
parent
047448464b
commit
2a86c72436
@ -81,8 +81,11 @@ class XsdDocumentedTests extends Specification {
|
|||||||
elementNameToElement*.value*.ids*.each { expectedIds.addAll it }
|
elementNameToElement*.value*.ids*.each { expectedIds.addAll it }
|
||||||
documentedIds.removeAll ignoredIds
|
documentedIds.removeAll ignoredIds
|
||||||
expectedIds.removeAll ignoredIds
|
expectedIds.removeAll ignoredIds
|
||||||
|
def undocumentedIds = (expectedIds - documentedIds)
|
||||||
|
def shouldNotBeDocumented = (documentedIds - expectedIds)
|
||||||
then: 'all the elements and attributes are documented'
|
then: 'all the elements and attributes are documented'
|
||||||
documentedIds.sort() == expectedIds.sort()
|
shouldNotBeDocumented.empty
|
||||||
|
undocumentedIds.empty
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user