-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option "ignorenamespace" #575
base: master
Are you sure you want to change the base?
Conversation
Setting "ignorenamespace" to "true" ignores checking the namespace.
if (ignoreNamespace) { | ||
this.namespace = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is sufficient:
- It becomes order-dependent; if one sets
ignoreNamespace
first and thennamespace
, the namespace check is still performed. - One can't reenable the namespace check without also setting the namespace to its previous value.
You would need to introduce a dedicated attribute for this.
|
||
verifyNoMoreInteractions(receiver); | ||
} | ||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing empty line above.
@@ -146,6 +146,63 @@ public void issue330ShouldOptionallyRecognizeRecordsWithoutNamespace() | |||
verifyNoMoreInteractions(receiver); | |||
} | |||
|
|||
@Test | |||
public void shouldRecognizeRecordsWithoutNamespace() | |||
throws SAXException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation for all throws
qualifiers.
Setting "ignorenamespace" to "true" ignores checking the namespace.
Resolves #569.