You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2009/08/05 18:58:59 UTC

svn commit: r801303 - in /sling/trunk/launchpad/testing/src/test: java/org/apache/sling/launchpad/webapp/integrationtest/ resources/integration-test/serverscripts/

Author: bdelacretaz
Date: Wed Aug  5 16:58:58 2009
New Revision: 801303

URL: http://svn.apache.org/viewvc?rev=801303&view=rev
Log:
ExecuteScriptTest added

Added:
    sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java   (with props)
    sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/
    sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.esp
    sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp   (with props)

Added: sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java?rev=801303&view=auto
==============================================================================
--- sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java (added)
+++ sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java Wed Aug  5 16:58:58 2009
@@ -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.launchpad.webapp.integrationtest;
+
+/** Test the executeScript test method */
+public class ExecuteScriptTest extends RenderingTestBase {
+    
+    public void testEspScript() throws Exception {
+        final String content = executeScript("serverscripts/servertest.esp");
+        assertContains(content, "ESP path = /apps/SlingTesting");
+    }
+
+    public void testJspScript() throws Exception {
+        final String content = executeScript("serverscripts/servertest.jsp");
+        assertContains(content, "JSP path = /apps/SlingTesting");
+    }
+}

Propchange: sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ExecuteScriptTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev URL

Added: sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.esp
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.esp?rev=801303&view=auto
==============================================================================
--- sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.esp (added)
+++ sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.esp Wed Aug  5 16:58:58 2009
@@ -0,0 +1,20 @@
+/*
+ * 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.
+ */
+ 
+ESP path = <%= currentNode.getPath() %>
\ No newline at end of file

Added: sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp?rev=801303&view=auto
==============================================================================
--- sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp (added)
+++ sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp Wed Aug  5 16:58:58 2009
@@ -0,0 +1,25 @@
+<!--
+/*
+ * 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.
+-->
+<!-- simple JSP rendering test -->
+<%@page session="false"%>
+<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>
+<sling:defineObjects/>
+
+JSP path = <%= currentNode.getPath() %>
\ No newline at end of file

Propchange: sling/trunk/launchpad/testing/src/test/resources/integration-test/serverscripts/servertest.jsp
------------------------------------------------------------------------------
    svn:eol-style = native