You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:21:05 UTC
[sling-org-apache-sling-servlet-helpers] 18/21: SLING-7174 - should
be IllegalStateException, not IllegalArgumentException
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlet-helpers.git
commit 6f947af25a0c4e401bfc60cf5afe566fb9ddcdcd
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Mon Oct 2 19:32:27 2017 +0000
SLING-7174 - should be IllegalStateException, not IllegalArgumentException
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810581 13f79535-47bb-0310-9956-ffa450edef68
---
.../apache/sling/servlethelpers/MockSlingHttpServletRequestTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequestTest.java b/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequestTest.java
index f3f9c00..aa7e275 100644
--- a/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequestTest.java
+++ b/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequestTest.java
@@ -354,7 +354,7 @@ public class MockSlingHttpServletRequestTest {
request.getInputStream();
try {
request.getReader();
- } catch (IllegalArgumentException e) {
+ } catch (IllegalStateException e) {
thrown = true;
}
assertTrue(thrown);
@@ -366,7 +366,7 @@ public class MockSlingHttpServletRequestTest {
request.getReader();
try {
request.getInputStream();
- } catch (IllegalArgumentException e) {
+ } catch (IllegalStateException e) {
thrown = true;
}
assertTrue(thrown);
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.