You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2019/06/20 10:06:48 UTC
[sling-org-apache-sling-testing-sling-mock-oak] 01/01: SLING-6994
reproduce problem with vanity path in unit test
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch feature/SLING-6994-vanitypath
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock-oak.git
commit b6b1a2f4700548d9885ae289129012860493fe59
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Thu Jun 20 12:06:17 2019 +0200
SLING-6994 reproduce problem with vanity path in unit test
---
pom.xml | 2 +-
.../mock/sling/oak/resource/VanityPathTest.java | 31 ++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 15c25e9..4ff08b0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,7 @@
<properties>
<oak.version>1.8.9</oak.version>
<jackrabbit.version>2.16.3</jackrabbit.version>
- <sling-mock.version>2.3.12</sling-mock.version>
+ <sling-mock.version>2.3.13-SNAPSHOT</sling-mock.version>
</properties>
<scm>
diff --git a/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/VanityPathTest.java b/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/VanityPathTest.java
new file mode 100644
index 0000000..3bf188e
--- /dev/null
+++ b/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/VanityPathTest.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.testing.mock.sling.oak.resource;
+
+import org.apache.sling.testing.mock.sling.ResourceResolverType;
+import org.apache.sling.testing.mock.sling.resource.AbstractVanityPathTest;
+
+public class VanityPathTest extends AbstractVanityPathTest {
+
+ @Override
+ protected ResourceResolverType getResourceResolverType() {
+ return ResourceResolverType.JCR_OAK;
+ }
+
+}