SLING-7755 test content for interfaces and abstract classes
authorSantiago Garcia Pimentel <santiago.pimentel@netcentric.biz>
Thu, 5 Jul 2018 11:55:45 +0000 (13:55 +0200)
committerRadu Cotescu <170911+raducotescu@users.noreply.github.com>
Mon, 27 Aug 2018 16:28:04 +0000 (18:28 +0200)
src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/AbstractRequestAdapterUseObject.java [new file with mode: 0644]
src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/NonImplementedInterface.java [new file with mode: 0644]
src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/package-info.java
src/main/resources/SLING-INF/apps/sightly/scripts/use/abstractClass.html [new file with mode: 0644]
src/main/resources/SLING-INF/apps/sightly/scripts/use/interface.html [new file with mode: 0644]

diff --git a/src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/AbstractRequestAdapterUseObject.java b/src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/AbstractRequestAdapterUseObject.java
new file mode 100644 (file)
index 0000000..6c4b6cd
--- /dev/null
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * 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.scripting.sightly.testing.adaptable;
+
+public abstract class AbstractRequestAdapterUseObject implements RequestAdapterUseObject {
+
+}
diff --git a/src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/NonImplementedInterface.java b/src/main/java/org/apache/sling/scripting/sightly/testing/adaptable/NonImplementedInterface.java
new file mode 100644 (file)
index 0000000..b381390
--- /dev/null
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * 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.scripting.sightly.testing.adaptable;
+
+public interface NonImplementedInterface {
+
+}
index 23488f7..97510c8 100644 (file)
@@ -15,7 +15,7 @@
  * limitations under the License.
  ******************************************************************************/
 
-@Version("1.1.0")
+@Version("1.2.0")
 package org.apache.sling.scripting.sightly.testing.adaptable;
 
 import org.osgi.annotation.versioning.Version;
diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/use/abstractClass.html b/src/main/resources/SLING-INF/apps/sightly/scripts/use/abstractClass.html
new file mode 100644 (file)
index 0000000..f3d06cd
--- /dev/null
@@ -0,0 +1,26 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ 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.
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTL Use-API - Sling implementation</title>
+    </head>
+    <body data-sly-use.model="org.apache.sling.scripting.sightly.testing.adaptable.AbstractRequestAdapterUseObject">
+    </body>
+</html>
diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/use/interface.html b/src/main/resources/SLING-INF/apps/sightly/scripts/use/interface.html
new file mode 100644 (file)
index 0000000..be4629d
--- /dev/null
@@ -0,0 +1,27 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ 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.
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTL Use-API - Sling implementation</title>
+    </head>
+    <body data-sly-use="org.apache.sling.scripting.sightly.testing.adaptable.NonImplementedInterface">
+        
+    </body>
+</html>