forgotten file

Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/352c0ce5
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/352c0ce5
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/352c0ce5

Branch: refs/heads/master
Commit: 352c0ce5800c02fde409ec93072234253fbc59e8
Parents: ec0e066
Author: Romain Manni-Bucau <[email protected]>
Authored: Mon Mar 16 22:45:21 2015 +0100
Committer: Romain Manni-Bucau <[email protected]>
Committed: Mon Mar 16 22:45:21 2015 +0100

----------------------------------------------------------------------
 .../tests/ear/ClassLoaderServlet.java           | 38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/352c0ce5/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/ear/ClassLoaderServlet.java
----------------------------------------------------------------------
diff --git 
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/ear/ClassLoaderServlet.java
 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/ear/ClassLoaderServlet.java
new file mode 100644
index 0000000..6216fce
--- /dev/null
+++ 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/ear/ClassLoaderServlet.java
@@ -0,0 +1,38 @@
+/*
+ * 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.openejb.arquillian.tests.ear;
+
+import org.apache.openejb.arquillian.tests.ear.cdi.SimpleBean;
+
+import java.io.IOException;
+import javax.inject.Inject;
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+@WebServlet("/classloader")
+public class ClassLoaderServlet extends HttpServlet {
+    @Inject
+    private SimpleBean bean;
+
+    @Override
+    protected void service(final HttpServletRequest req, final 
HttpServletResponse resp) throws ServletException, IOException {
+        resp.getWriter().print(bean.classloaderAsStr());
+    }
+}

Reply via email to