You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "pivotal-eshu (GitHub)" <gi...@apache.org> on 2018/11/15 00:59:24 UTC
[GitHub] [geode] pivotal-eshu opened pull request #2856: GEODE-6051:
Fix suspect string by using addIgnoredException.
[ Full content available at: https://github.com/apache/geode/pull/2856 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] kirklund commented on pull request #2856:
GEODE-6051: Fix suspect string by using addIgnoredException.
Posted by "kirklund (GitHub)" <gi...@apache.org>.
No need to invoke getName() on the class -- you can just use .class directly. Also, I recommend using the try-resource syntax since IgnoredException is AutoCloseable:
```
try (IgnoredException ie = addIgnoredException(ConnectException.class)) {
giiEventQueueShouldSucceedWithMixedVersions(VersionManager.CURRENT_VERSION, testVersion);
}
[ Full content available at: https://github.com/apache/geode/pull/2856 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] kirklund commented on pull request #2856:
GEODE-6051: Fix suspect string by using addIgnoredException.
Posted by "kirklund (GitHub)" <gi...@apache.org>.
Also, DUnit automatically removes IgnoredExceptions after the test, so another alternative is:
```
addIgnoredException(ConnectException.class);
giiEventQueueShouldSucceedWithMixedVersions(VersionManager.CURRENT_VERSION, testVersion);
```
[ Full content available at: https://github.com/apache/geode/pull/2856 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] pivotal-eshu commented on pull request #2856:
GEODE-6051: Fix suspect string by using addIgnoredException.
Posted by "pivotal-eshu (GitHub)" <gi...@apache.org>.
Thanks for pointing out how to suppress suspect string in dunit test.
[ Full content available at: https://github.com/apache/geode/pull/2856 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] pivotal-eshu closed pull request #2856: GEODE-6051:
Fix suspect string by using addIgnoredException.
Posted by "pivotal-eshu (GitHub)" <gi...@apache.org>.
[ pull request closed by pivotal-eshu ]
[ Full content available at: https://github.com/apache/geode/pull/2856 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org