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/11/07 10:19:02 UTC
[sling-org-apache-sling-testing-jcr-mock] 05/07: SLING-6817
jcr-mock: Minimal support for JCR Session attributes
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.testing.jcr-mock-1.3.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-jcr-mock.git
commit 3f0e05cd58d549802baa3c6e5e8977bc37f1267a
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue May 2 12:09:46 2017 +0000
SLING-6817 jcr-mock: Minimal support for JCR Session attributes
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/jcr-mock@1793478 13f79535-47bb-0310-9956-ffa450edef68
---
.../apache/sling/testing/mock/jcr/MockSession.java | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/sling/testing/mock/jcr/MockSession.java b/src/main/java/org/apache/sling/testing/mock/jcr/MockSession.java
index f886a16..b87396a 100644
--- a/src/main/java/org/apache/sling/testing/mock/jcr/MockSession.java
+++ b/src/main/java/org/apache/sling/testing/mock/jcr/MockSession.java
@@ -314,6 +314,17 @@ class MockSession implements Session {
isLive = false;
}
+ @Override
+ public Object getAttribute(final String name) {
+ return null;
+ }
+
+ @Override
+ public String[] getAttributeNames() {
+ return new String[0];
+ }
+
+
// --- unsupported operations ---
@Override
public void addLockToken(final String lt) {
@@ -345,16 +356,6 @@ class MockSession implements Session {
}
@Override
- public Object getAttribute(final String name) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public String[] getAttributeNames() {
- throw new UnsupportedOperationException();
- }
-
- @Override
public ContentHandler getImportContentHandler(final String parentAbsPath, final int uuidBehavior) throws RepositoryException {
throw new UnsupportedOperationException();
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.