You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by km...@apache.org on 2011/07/14 03:22:17 UTC

svn commit: r1146535 - in /openejb/trunk/openejb3/tck/cdi-tomee: ./ src/ src/main/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/openejb/ src/test/java/org/apache/openejb/tck/ src/test/java/org/apache/op...

Author: kmalhi
Date: Thu Jul 14 01:22:16 2011
New Revision: 1146535

URL: http://svn.apache.org/viewvc?rev=1146535&view=rev
Log:
Initial version of the TomEE CDI Setup

Added:
    openejb/trunk/openejb3/tck/cdi-tomee/src/
    openejb/trunk/openejb3/tck/cdi-tomee/src/main/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/BeansImpl.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ContextsImpl.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ELImpl.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ManagersImpl.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/Report.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/RequestScopeTestListener.java
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/jboss-test-harness.properties
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/all-failing.xml
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/failing.xml
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/passing.xml
    openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/web-profile.xml
Modified:
    openejb/trunk/openejb3/tck/cdi-tomee/   (props changed)
    openejb/trunk/openejb3/tck/cdi-tomee/pom.xml

Propchange: openejb/trunk/openejb3/tck/cdi-tomee/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Jul 14 01:22:16 2011
@@ -0,0 +1,4 @@
+.settings
+target
+.classpath
+.project

Modified: openejb/trunk/openejb3/tck/cdi-tomee/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/pom.xml?rev=1146535&r1=1146534&r2=1146535&view=diff
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/pom.xml (original)
+++ openejb/trunk/openejb3/tck/cdi-tomee/pom.xml Thu Jul 14 01:22:16 2011
@@ -16,8 +16,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <parent>
     <artifactId>tck</artifactId>
     <groupId>org.apache.openejb</groupId>
@@ -27,26 +26,32 @@
   <artifactId>cdi-tomee</artifactId>
   <packaging>jar</packaging>
   <name>OpenEJB :: TCK :: CDI TomEE</name>
-
   <properties>
     <!-- where we will unpack tomcat -->
-    <openejb.home>${project.build.directory}/apache-tomee-${project.version}</openejb.home>
+    <openejb.home>${project.build.directory}\apache-tomee-${project.version}</openejb.home>
   </properties>
-
   <dependencies>
     <dependency>
+      <groupId>org.apache.openejb</groupId>
+      <artifactId>openejb-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>apache-tomee</artifactId>
       <type>zip</type>
       <version>${project.version}</version>
     </dependency>
-
+    <dependency>
+      <groupId>org.apache.openejb</groupId>
+      <artifactId>tck-common</artifactId>
+      <version>${project.version}</version>
+    </dependency>
     <dependency>
       <groupId>org.jboss.jsr299.tck</groupId>
       <artifactId>jsr299-tck-impl</artifactId>
@@ -59,27 +64,23 @@
         </exclusion>
       </exclusions>
     </dependency>
-
     <dependency>
-       <groupId>org.testng</groupId>
-       <artifactId>testng</artifactId>
-       <version>6.0.1</version>
+      <groupId>org.testng</groupId>
+      <artifactId>testng</artifactId>
+      <version>6.0.1</version>
+      <scope>test</scope>
     </dependency>
-
   </dependencies>
-
   <build>
     <plugins>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
-        <version>2.1</version>
-
+        <version>2.3</version>
         <executions>
           <execution>
             <id>unpack</id>
-            <phase>pre-integration-test</phase>
+            <phase>initialize</phase>
             <goals>
               <goal>unpack</goal>
             </goals>
@@ -88,6 +89,7 @@
                 <artifactItem>
                   <groupId>org.apache.openejb</groupId>
                   <artifactId>apache-tomee</artifactId>
+                  <version>${project.version}</version>
                   <type>zip</type>
                   <outputDirectory>${project.build.directory}</outputDirectory>
                 </artifactItem>
@@ -96,18 +98,21 @@
           </execution>
         </executions>
       </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
           <suiteXmlFiles>
+            <!-- <suiteXmlFile>src/test/resources/web-profile.xml</suiteXmlFile> -->
             <suiteXmlFile>src/test/resources/passing.xml</suiteXmlFile>
-            <!--<suiteXmlFile>src/test/resources/failing.xml</suiteXmlFile>-->
+            <!--<suiteXmlFile>src/test/resources/failing.xml</suiteXmlFile> -->
           </suiteXmlFiles>
+          <forkMode>once</forkMode>
+          <systemPropertyVariables>
+            <openejb.home>${project.build.directory}\apache-tomee-${project.version}</openejb.home>
+          </systemPropertyVariables>
         </configuration>
       </plugin>
     </plugins>
   </build>
-
-</project>
+</project>
\ No newline at end of file

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/BeansImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/BeansImpl.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/BeansImpl.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/BeansImpl.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,52 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import org.apache.openejb.core.ivm.IntraVmProxy;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+
+/**
+* @version $Rev$ $Date$
+*/
+public class BeansImpl implements org.jboss.jsr299.tck.spi.Beans {
+
+    public boolean isProxy(Object instance) {
+        System.out.println("isProxy: " + instance);
+        return instance instanceof IntraVmProxy || instance.getClass().getName().contains("$$");
+    }
+
+    @Override
+    public byte[] serialize(Object instance) throws IOException {
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        ObjectOutputStream os = new ObjectOutputStream(baos);
+        os.writeObject(instance);
+        os.flush();
+        return baos.toByteArray();
+    }
+
+    @Override
+    public Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException {
+        ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
+        ObjectInputStream is = new ObjectInputStream(bais);
+        return is.readObject();
+    }
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ContextsImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ContextsImpl.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ContextsImpl.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ContextsImpl.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,60 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import org.apache.webbeans.config.WebBeansContext;
+import org.apache.webbeans.context.AbstractContext;
+import org.apache.webbeans.context.ContextFactory;
+import org.apache.webbeans.context.RequestContext;
+import org.apache.webbeans.context.type.ContextTypes;
+
+import javax.enterprise.context.RequestScoped;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ContextsImpl implements org.jboss.jsr299.tck.spi.Contexts<AbstractContext> {
+
+    public AbstractContext getRequestContext() {
+        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
+        RequestContext ctx = (RequestContext) contextFactory.getStandardContext(RequestScoped.class);
+
+        if (ctx == null) {
+            contextFactory.initRequestContext(null);
+        }
+
+        return (AbstractContext) contextFactory.getStandardContext(ContextTypes.REQUEST);
+    }
+
+    public void setActive(AbstractContext context) {
+        context.setActive(true);
+
+    }
+
+    public void setInactive(AbstractContext context) {
+        context.setActive(false);
+    }
+
+    public AbstractContext getDependentContext() {
+        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
+        return (AbstractContext) contextFactory.getStandardContext(ContextTypes.DEPENDENT);
+    }
+
+    public void destroyContext(AbstractContext context) {
+        context.destroy();
+    }
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ELImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ELImpl.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ELImpl.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ELImpl.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,40 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import javax.el.ELContext;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ELImpl implements org.jboss.jsr299.tck.spi.EL {
+
+    @Override
+    public <T> T evaluateValueExpression(String expression, Class<T> expectedType) {
+        return null;
+    }
+
+    @Override
+    public <T> T evaluateMethodExpression(String expression, Class<T> expectedType, Class<?>[] expectedParamTypes, Object[] expectedParams) {
+        return null;
+    }
+
+    @Override
+    public ELContext createELContext() {
+        return null;
+    }
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ManagersImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ManagersImpl.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ManagersImpl.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/ManagersImpl.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,32 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import org.apache.webbeans.container.InjectableBeanManager;
+
+import javax.enterprise.inject.spi.BeanManager;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ManagersImpl implements org.jboss.jsr299.tck.spi.Managers {
+
+    public BeanManager getManager() {
+        return new InjectableBeanManager();
+    }
+
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/Report.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/Report.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/Report.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/Report.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,243 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
+
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.PrintStream;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicInteger;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class Report {
+
+    public static void main(String[] args) throws Exception {
+        new Report().main();
+    }
+
+    private final LinkedList<TestClass> classes = new LinkedList<TestClass>();
+
+    private void main() throws Exception {
+//        final File file = new File("/Users/dblevins/work/uber/geronimo-tck-public-trunk/jcdi-tck-runner/target/surefire-reports/testng-results.xml");
+        final File file = new File("/Users/dblevins/work/uber/openejb/tck/cdi-embedded/target/surefire-reports/testng-results.xml");
+//        final File file = new File("/Users/dblevins/work/uber/testng-results.xml");
+
+        final SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
+
+        parser.parse(file, new DefaultHandler() {
+            @Override
+            public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+                final String name = qName;
+                if ("class".equals(name)) {
+                    classes.add(new TestClass(attributes.getValue("name")));
+                }
+
+                if ("test-method".equals(name)) {
+                    classes.getLast().addStatus(attributes.getValue("status"), attributes.getValue("name"));
+                }
+            }
+        });
+
+        Collections.sort(classes);
+
+        textReport(file);
+        passingXml(file);
+        failingXml(file);
+
+    }
+
+    private void textReport(File file) throws FileNotFoundException {
+        final File report = new File(file.getParentFile(), file.getName().replaceAll(".xml$", ".txt"));
+        final PrintStream out = new PrintStream(new FileOutputStream(report));
+        printResults(out);
+        out.close();
+    }
+
+    private void passingXml(File file) throws FileNotFoundException {
+        final File report = new File(file.getParentFile(), file.getName().replaceAll(".xml$", "-passing.xml"));
+        final PrintStream out = new PrintStream(new FileOutputStream(report));
+
+        out.println("" +
+                "<suite name=\"CDI TCK\" verbose=\"0\">\n" +
+                "  <listeners>\n" +
+                "    <listener class-name=\"org.apache.openejb.tck.cdi.embedded.RequestScopeTestListener\" />\n" +
+                "  </listeners>\n" +
+                "  <test name=\"CDI TCK\">" +
+                "    <packages>\n" +
+                "        <package name=\"org.jboss.jsr299.tck.tests.*\"/>\n" +
+                "        <package name=\"org.jboss.jsr299.tck.interceptors.tests.*\"/>\n" +
+                "    </packages>\n" +
+                "    <classes>");
+
+        for (TestClass testClass : classes) {
+
+            if (contains(testClass, Status.FAIL)) {
+                out.printf("      <class name=\"%s\">\n", testClass.name);
+                out.printf("        <methods>\n");
+
+                for (TestResult result : testClass.getResults()) {
+                    if (result.status == Status.FAIL) {
+                        out.printf("          <exclude name=\"%s\"/>\n", result.name);
+                    }
+                }
+
+                out.printf("        </methods>\n");
+                out.printf("      </class>\n");
+            }
+        }
+        out.println("    </classes>");
+        out.println("  </test>");
+        out.println("</suite>");
+
+        out.close();
+    }
+
+    private void failingXml(File file) throws FileNotFoundException {
+        final File report = new File(file.getParentFile(), file.getName().replaceAll(".xml$", "-failing.xml"));
+        final PrintStream out = new PrintStream(new FileOutputStream(report));
+
+        out.println("<suite name=\"CDI TCK\" verbose=\"0\">");
+        out.println("  <test name=\"CDI TCK\">");
+        out.println("    <!--<packages>-->\n" +
+                "        <!--<package name=\"org.jboss.jsr299.tck.tests.*\"/>-->\n" +
+                "        <!--<package name=\"org.jboss.jsr299.tck.interceptors.tests.*\"/>-->\n" +
+                "    <!--</packages>-->");
+        out.println("    <classes>");
+
+        for (TestClass testClass : classes) {
+
+            if (contains(testClass, Status.FAIL)) {
+                out.printf("      <class name=\"%s\"/>\n", testClass.name);
+            }
+        }
+        out.println("    </classes>");
+        out.println("  </test>");
+        out.println("</suite>");
+
+        out.close();
+    }
+
+    private boolean contains(TestClass testClass, Status status) {
+
+        for (TestResult result : testClass.getResults()) {
+            if (result.name.equals("beforeClass")) continue;
+            if (result.name.equals("afterClass")) continue;
+            if (result.name.equals("afterSuite")) continue;
+            if (result.name.equals("beforeSuite")) continue;
+
+            if (result.status == status)  {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    private void printResults(PrintStream out) {
+
+        Map<Status, AtomicInteger> totals = new HashMap<Status, AtomicInteger>();
+        for (Status status : Status.values()) {
+            totals.put(status, new AtomicInteger());
+        }
+
+        for (TestClass testClass : classes) {
+
+            for (TestResult result : testClass.getResults()) {
+                if (result.name.equals("beforeClass")) continue;
+                if (result.name.equals("afterClass")) continue;
+                if (result.name.equals("afterSuite")) continue;
+                if (result.name.equals("beforeSuite")) continue;
+//                if (result.status == Status.PASS) continue;
+                totals.get(result.status).getAndIncrement();
+
+                out.printf("%s - %s(%s)\n", result.status, result.name, testClass.name);
+            }
+        }
+
+        out.println("\n\n");
+
+        int total = 0;
+
+        for (Map.Entry<Status, AtomicInteger> entry : totals.entrySet()) {
+            final int i = entry.getValue().get();
+            total += i;
+            out.printf("%5s %s\n", i, entry.getKey());
+        }
+
+        out.printf("%5s %s\n", total, "Total");
+
+    }
+
+    public static enum Status {
+        PASS, FAIL, ERROR;
+    }
+    public static class TestResult {
+        private final String name;
+        private final Status status;
+
+        public TestResult(String name, Status status) {
+            this.name = name;
+            this.status = status;
+        }
+    }
+
+    public static class TestClass implements Comparable<TestClass>{
+
+        private final String name;
+        private int failed;
+        private int passed;
+        private int error;
+        private final List<TestResult> results = new ArrayList<TestResult>();
+
+        public TestClass(String name) {
+            this.name = name;
+        }
+
+        public void addStatus(String status, String testName) {
+            results.add(new TestResult(testName, Status.valueOf(status)));
+            if ("PASS".equals(status)) passed++;
+            if ("FAIL".equals(status)) failed++;
+            if ("ERROR".equals(status)) error++;
+        }
+
+        public List<TestResult> getResults() {
+            return results;
+        }
+
+        public boolean hasFailures() {
+            return failed > 0 || error > 0;
+        }
+
+        @Override
+        public int compareTo(TestClass o) {
+            return this.name.compareTo(o.name);
+        }
+    }
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/RequestScopeTestListener.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/RequestScopeTestListener.java?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/RequestScopeTestListener.java (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/java/org/apache/openejb/tck/cdi/tomee/RequestScopeTestListener.java Thu Jul 14 01:22:16 2011
@@ -0,0 +1,89 @@
+/**
+ * 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.tck.cdi.tomee;
+
+import org.apache.openejb.BeanContext;
+import org.apache.openejb.BeanType;
+import org.apache.openejb.core.ThreadContext;
+import org.apache.openejb.loader.SystemInstance;
+import org.apache.openejb.spi.ContainerSystem;
+import org.testng.ITestContext;
+import org.testng.ITestListener;
+import org.testng.ITestResult;
+
+public class RequestScopeTestListener implements ITestListener {
+
+    private boolean entered = false;
+    private ThreadContext oldContext;
+
+    @Override
+    public void onTestStart(ITestResult iTestResult) {
+        entered = true;
+        final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
+
+        if (containerSystem == null) return;
+
+        BeanContext context = null;
+        for (BeanContext beanContext : containerSystem.deployments()) {
+            BeanType beanType = BeanType.MANAGED;
+            if (beanContext.getComponentType() == beanType) {
+                context = beanContext;
+                break;
+            }
+        }
+
+        if (context == null) return;
+
+        ThreadContext newContext = new ThreadContext(context, null);
+        oldContext = ThreadContext.enter(newContext);
+
+    }
+
+    @Override
+    public void onTestSuccess(ITestResult iTestResult) {
+        exit();
+    }
+
+    private void exit() {
+        try {
+            ThreadContext.exit(oldContext);
+        } catch (Exception e) {
+        }
+    }
+
+    @Override
+    public void onTestFailure(ITestResult iTestResult) {
+        exit();
+    }
+
+    @Override
+    public void onTestSkipped(ITestResult iTestResult) {
+        exit();
+    }
+
+    @Override
+    public void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult) {
+    }
+
+    @Override
+    public void onStart(ITestContext iTestContext) {
+    }
+
+    @Override
+    public void onFinish(ITestContext iTestContext) {
+    }
+}

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/jboss-test-harness.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/jboss-test-harness.properties?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/jboss-test-harness.properties (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/META-INF/jboss-test-harness.properties Thu Jul 14 01:22:16 2011
@@ -0,0 +1,29 @@
+#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.
+
+org.jboss.jsr299.tck.spi.Managers=org.apache.openejb.tck.cdi.tomee.ManagersImpl
+org.jboss.jsr299.tck.spi.Beans=org.apache.openejb.tck.cdi.tomee.BeansImpl
+org.jboss.jsr299.tck.spi.Contexts=org.apache.openejb.tck.cdi.tomee.ContextsImpl
+org.jboss.jsr299.tck.spi.EL=org.apache.openejb.tck.cdi.tomee.ELImpl
+org.jboss.testharness.spi.StandaloneContainers=org.apache.openejb.tck.impl.StandaloneContainersImpl
+org.jboss.testharness.spi.Containers=org.apache.openejb.tck.impl.ContainersImplTomEE
+
+org.jboss.testharness.standalone=false
+org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher
+org.jboss.testharness.runIntegrationTests=true
+org.jboss.testharness.outputDirectory=dumpedArtifacts
+org.jboss.testharness.container.forceRestart=false
\ No newline at end of file

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/all-failing.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/all-failing.xml?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/all-failing.xml (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/all-failing.xml Thu Jul 14 01:22:16 2011
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+-->
+<suite name="CDI TCK" verbose="0">
+  <listeners>
+    <listener class-name="org.apache.openejb.tck.cdi.tomee.RequestScopeTestListener" />
+  </listeners>
+  <test name="CDI TCK">
+    <!--<packages>-->
+        <!--<package name="org.jboss.jsr299.tck.tests.*"/>-->
+        <!--<package name="org.jboss.jsr299.tck.interceptors.tests.*"/>-->
+    <!--</packages>-->
+    <classes>
+      <class name="org.jboss.jsr299.tck.tests.context.application.ApplicationContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.ClientConversationContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.InvalidatingSessionDestroysConversationTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.LongRunningConversationPropagatedByFacesContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.ManualCidPropagationTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.dependent.DependentContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.enterpriseBeanWithNonPassivatingDecorator.EnterpriseBeanWithNonPassivatingDecoratorTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.request.RequestContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.request.ejb.EJBRequestContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.context.session.SessionContextTest"/>
+      <class name="org.jboss.jsr299.tck.tests.definition.stereotype.broken.nonEmptyNamed.NonEmptyNamedTest"/>
+      <class name="org.jboss.jsr299.tck.tests.definition.stereotype.broken.tooManyScopes.TooManyScopeTypesTest"/>
+      <class name="org.jboss.jsr299.tck.tests.deployment.packaging.bundledLibrary.LibraryInEarTest"/>
+      <class name="org.jboss.jsr299.tck.tests.deployment.packaging.bundledLibrary.LibraryInWarTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.enterprise.remove.EnterpriseBeanRemoveMethodTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.producer.method.definition.enterprise.EnterpriseProducerMethodDefinitionTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.env.EnvInjectionTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.persistenceContext.PersistenceContextInjectionTest"/>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.resource.InjectionOfResourceTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationIntegrationTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.directlyExtendsNothing.DirectlyExtendsNothingTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.directlyExtendsSimpleBean.DirectlyExtendsSimpleBeanTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.implementInterfaceAndExtendsNothing.ImplementsInterfaceAndExtendsNothingTest"/>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.sameName.SameNameTest"/>
+      <class name="org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.nonContextualReference.SessionBeanInterceptorOnNonContextualEjbReferenceTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.clientProxy.incontainer.ClientProxyTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.el.ResolutionByNameTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.el.integration.IntegrationWithUnifiedELTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ws.InjectionIntoWebServiceEndPointTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injectionpoint.broken.not.bean.InjectionPointTest"/>
+      <class name="org.jboss.jsr299.tck.tests.lookup.manager.jndi.ManagerTest"/>
+    </classes>
+  </test>
+</suite>

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/failing.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/failing.xml?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/failing.xml (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/failing.xml Thu Jul 14 01:22:16 2011
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+-->
+<suite name="CDI TCK" verbose="0">
+  <listeners>
+    <listener class-name="org.apache.openejb.tck.cdi.tomee.RequestScopeTestListener" />
+  </listeners>
+  <test name="CDI TCK">
+    <!--<packages>-->
+        <!--<package name="org.jboss.jsr299.tck.tests.*"/>-->
+        <!--<package name="org.jboss.jsr299.tck.interceptors.tests.*"/>-->
+    <!--</packages>-->
+    <classes>
+      <!--<class name="org.jboss.jsr299.tck.tests.context.dependent.ejb.DependentContextEjbTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.context.request.ejb.EJBRequestContextTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.extensions.producer.ProducerTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.implementation.builtin.BuiltInBeansTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest">-->
+        <!--<methods>-->
+          <!--<exclude name="testCreateSFSB"/>-->
+        <!--</methods>-->
+      <!--</class>-->
+      <class name="org.jboss.jsr299.tck.tests.implementation.producer.method.definition.enterprise.EnterpriseProducerMethodDefinitionTest"/>
+      <!--<class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.ejb.EjbInjectionTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.nonContextualReference.SessionBeanInterceptorOnNonContextualEjbReferenceTest"/>-->
+      <!--<class name="org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ws.InjectionIntoWebServiceEndPointTest"/>-->
+    </classes>
+  </test>
+</suite>

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/passing.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/passing.xml?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/passing.xml (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/passing.xml Thu Jul 14 01:22:16 2011
@@ -0,0 +1,266 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+-->
+<suite name="CDI TCK" verbose="2">
+
+  <listeners>
+    <listener class-name="org.apache.openejb.tck.cdi.tomee.RequestScopeTestListener" />
+  </listeners>
+
+  <test name="CDI TCK">
+    <packages>
+        <package name="org.jboss.jsr299.tck.tests.*"/>
+        <package name="org.jboss.jsr299.tck.interceptors.tests.*"/>
+    </packages>
+    <classes>
+      <class name="org.jboss.jsr299.tck.tests.context.DestroyForSameCreationalContext2Test"/>
+      <class name="org.jboss.jsr299.tck.tests.context.application.ApplicationContextTest">
+        <methods>
+          <exclude name="testApplicationContextSharedBetweenServletRequests"/>
+          <exclude name="testApplicationScopeActiveDuringDoFilterMethod"/>
+          <exclude name="testApplicationScopeActiveDuringHttpSessionListenerInvocation"/>
+          <exclude name="testApplicationScopeActiveDuringServiceMethod"/>
+          <exclude name="testApplicationScopeActiveDuringServletContextListenerInvocation"/>
+          <exclude name="testApplicationScopeActiveDuringServletRequestListenerInvocation"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.ClientConversationContextTest">
+        <methods>
+          <exclude name="testBeanWithDefaultQualifier"/>
+          <exclude name="testBeanWithNameJavaxEnterpriseContextConversation"/>
+          <exclude name="testBeanWithRequestScope"/>
+          <exclude name="testBeginAlreadyLongRunningConversationThrowsException"/>
+          <exclude name="testConversationActiveDuringNonFacesRequest"/>
+          <exclude name="testConversationBeginMakesConversationLongRunning"/>
+          <exclude name="testConversationEndMakesConversationTransient"/>
+          <exclude name="testConversationHasDefaultTimeout"/>
+          <exclude name="testConversationIdMayBeSetByApplication"/>
+          <exclude name="testConversationIdMayBeSetByContainer"/>
+          <exclude name="testConversationIdSetByContainerIsUnique"/>
+          <exclude name="testConversationsDontCrossSessionBoundary1"/>
+          <exclude name="testConversationsDontCrossSessionBoundary2"/>
+          <exclude name="testEndTransientConversationThrowsException"/>
+          <exclude name="testLongRunningConversationInstancesNotDestroyedAtRequestEnd"/>
+          <exclude name="testSetConversationTimeoutOverride"/>
+          <exclude name="testTransientConversationHasNullId"/>
+          <exclude name="testTransientConversationInstancesDestroyedAtRequestEnd"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.InvalidatingSessionDestroysConversationTest">
+        <methods>
+          <exclude name="testInvalidatingSessionDestroysConversation"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.LongRunningConversationPropagatedByFacesContextTest">
+        <methods>
+          <exclude name="testConversationPropagated"/>
+          <exclude name="testConversationPropagatedOverRedirect"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.conversation.ManualCidPropagationTest">
+        <methods>
+          <exclude name="testManualCidPropagation"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.dependent.DependentContextTest">
+        <methods>
+          <exclude name="testContextIsActiveWhenEvaluatingElExpression"/>
+          <exclude name="testDependentsDestroyedWhenElEvaluationCompletes"/>
+          <exclude name="testInstanceUsedForElEvaluationNotShared"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest">
+        <methods>
+          <exclude name="test"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.dependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBean.EnterpriseBeanWithIllegalDependencyTest">
+        <methods>
+          <exclude name="test"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.passivating.broken.enterpriseBeanWithNonPassivatingDecorator.EnterpriseBeanWithNonPassivatingDecoratorTest">
+        <methods>
+          <exclude name="testEnterpriseBeanWithNonPassivatingDecoratorFails"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.request.RequestContextTest">
+        <methods>
+          <exclude name="testRequestScopeActiveDuringServiceMethod"/>
+          <exclude name="testRequestScopeActiveDuringServletFilter"/>
+          <exclude name="testRequestScopeIsDestroyedAfterServletRequest"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.request.ejb.EJBRequestContextTest">
+        <methods>
+          <exclude name="testRequestScopeDestroyedAfterCallToEjbTimeoutMethod"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.context.session.SessionContextTest">
+        <methods>
+          <exclude name="testSessionContextDestroyedWhenHttpSessionInvalidated"/>
+          <exclude name="testSessionContextDestroyedWhenHttpSessionTimesOut"/>
+          <exclude name="testSessionContextSharedBetweenServletRequestsInSameHttpSession"/>
+          <exclude name="testSessionScopeActiveDuringDoFilterMethod"/>
+          <exclude name="testSessionScopeActiveDuringServiceMethod"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.definition.stereotype.broken.nonEmptyNamed.NonEmptyNamedTest">
+        <methods>
+          <exclude name="testStereotypeWithNonEmptyNamed"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.definition.stereotype.broken.tooManyScopes.TooManyScopeTypesTest">
+        <methods>
+          <exclude name="testStereotypeWithTooManyScopeTypes"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.deployment.packaging.bundledLibrary.LibraryInEarTest">
+        <methods>
+          <exclude name="test"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.deployment.packaging.bundledLibrary.LibraryInWarTest">
+        <methods>
+          <exclude name="test"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest">
+        <methods>
+          <exclude name="testCreateSFSB"/>
+          <exclude name="testSerializeSFSB"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.enterprise.remove.EnterpriseBeanRemoveMethodTest">
+        <methods>
+          <exclude name="testApplicationCannotCallRemoveMethodOnNonDependentScopedSessionEnterpriseBean"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.producer.method.definition.enterprise.EnterpriseProducerMethodDefinitionTest">
+        <methods>
+          <exclude name="testNonStaticProducerMethodInheritedBySpecializingSubclass"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.env.EnvInjectionTest">
+        <methods>
+          <exclude name="testInjectionOfEnv"/>
+          <exclude name="testProduceEnvProxy"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.persistenceContext.PersistenceContextInjectionTest">
+        <methods>
+          <exclude name="testBeanTypesAndBindingTypesOfPersistenceContext"/>
+          <exclude name="testInjectionOfPersistenceUnit"/>
+          <exclude name="testPassivationOfPersistenceContext"/>
+          <exclude name="testInjectionOfPersistenceContext"/>
+          <exclude name="testPassivationOfPersistenceUnit"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.implementation.simple.resource.resource.InjectionOfResourceTest">
+        <methods>
+          <exclude name="testInjectionOfResource"/>
+          <exclude name="testPassivatingResource"/>
+          <exclude name="testProduceResourceProxy"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationIntegrationTest">
+        <methods>
+          <exclude name="testSpecializedBeanNotInstantiated"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest">
+        <methods>
+          <exclude name="testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean"/>
+          <exclude name="testSpecializingBeanHasNameOfSpecializedBean"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.directlyExtendsNothing.DirectlyExtendsNothingTest">
+        <methods>
+          <exclude name="testSpecializingClassDirectlyExtendsNothing"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.directlyExtendsSimpleBean.DirectlyExtendsSimpleBeanTest">
+        <methods>
+          <exclude name="testSpecializingClassDirectlyExtendsSimpleBean"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.implementInterfaceAndExtendsNothing.ImplementsInterfaceAndExtendsNothingTest">
+        <methods>
+          <exclude name="testSpecializingClassImplementsInterfaceAndExtendsNothing"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.sameName.SameNameTest">
+        <methods>
+          <exclude name="testSpecializingAndSpecializedBeanHasName"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.nonContextualReference.SessionBeanInterceptorOnNonContextualEjbReferenceTest">
+        <methods>
+          <exclude name="testNonContextualSessionBeanReferenceIsIntercepted"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.clientProxy.incontainer.ClientProxyTest">
+        <methods>
+          <exclude name="testInvocationIsProcessedOnCurrentInstance"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.el.ResolutionByNameTest">
+        <methods>
+          <exclude name="testContextCreatesNewInstanceForInjection"/>
+          <exclude name="testELResolverReturnsContextualInstance"/>
+          <exclude name="testQualifiedNameLookup"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.el.integration.IntegrationWithUnifiedELTest">
+        <methods>
+          <exclude name="testELResolverRegisteredWithJsf"/>
+          <exclude name="testELResolverRegisteredWithServletContainer"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest">
+        <methods>
+          <exclude name="testFilterInitializerMethodCalled"/>
+          <exclude name="testInjectionIntoFilter"/>
+          <exclude name="testInjectionIntoJSFManagedBean"/>
+          <exclude name="testInjectionIntoServlet"/>
+          <exclude name="testInjectionIntoServletListener"/>
+          <exclude name="testInjectionIntoTagHandler"/>
+          <exclude name="testInjectionIntoTagLibraryListener"/>
+          <exclude name="testServletInitializerMethodCalled"/>
+          <exclude name="testServletListenerInitializerMethodCalled"/>
+          <exclude name="testTagLibraryListenerInitializerMethodCalled"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ws.InjectionIntoWebServiceEndPointTest">
+        <methods>
+          <exclude name="testInjectionIntoWebServiceEndpoint"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.injectionpoint.broken.not.bean.InjectionPointTest">
+        <methods>
+          <exclude name="testDefinitionErrorDetected"/>
+        </methods>
+      </class>
+      <class name="org.jboss.jsr299.tck.tests.lookup.manager.jndi.ManagerTest">
+        <methods>
+          <exclude name="testManagerLookupInJndi"/>
+        </methods>
+      </class>
+    </classes>
+  </test>
+</suite>

Added: openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/web-profile.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/web-profile.xml?rev=1146535&view=auto
==============================================================================
--- openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/web-profile.xml (added)
+++ openejb/trunk/openejb3/tck/cdi-tomee/src/test/resources/web-profile.xml Thu Jul 14 01:22:16 2011
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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 suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+<suite name="CDI Web Profile" verbose="2">
+	<!-- <method-selectors> <method-selector> <selector-class name="org.jboss.jsr299.tck.impl.WebProfileMethodSelector" 
+		/> </method-selector> </method-selectors> <packages> <package name="org.jboss.jsr299.tck.tests.*" 
+		/> <package name="org.jboss.jsr299.tck.interceptors.tests.*" /> </packages> -->
+	<test name="CDI TomEE">
+		<classes>
+			<class
+				name="org.jboss.jsr299.tck.tests.context.DestroyForSameCreationalContext2Test" />
+		</classes>
+	</test>
+</suite>
\ No newline at end of file