npeltier closed pull request #1: SLING-7692 catch Unsupported ex
URL: https://github.com/apache/sling-org-apache-sling-testing-sling-mock/pull/1
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java
 
b/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java
index 6d4fa7c..8b22be8 100644
--- 
a/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java
+++ 
b/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java
@@ -194,6 +194,8 @@ protected void tearDown() {
                     session.refresh(false);
                 } catch (RepositoryException ex) {
                     // ignore
+                } catch (UnsupportedOperationException ex){
+                    // ignore
                 }
             }
             


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to