[weld-commits] Weld SVN: r5540 - in cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests: context/conversation/client and 9 other directories.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Jan 20 18:14:32 EST 2010


Author: pete.muir at jboss.org
Date: 2010-01-20 18:14:31 -0500 (Wed, 20 Jan 2010)
New Revision: 5540

Modified:
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/application/ApplicationContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ClientConversationContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/InvalidatingSessionDestroysConversationTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/LongRunningConversationPropagatedByFacesContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ManualCidPropagationTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/session/SessionContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/env/EnvInjectionTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/persistenceContext/PersistenceContextInjectionTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/clientProxy/incontainer/ClientProxyTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/el/integration/IntegrationWithUnifiedELTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ContainerEventTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/InjectionIntoNonContextualComponentTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/InjectionIntoWebServiceEndPointTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/broken/not/bean/InjectionPointTest.java
Log:
Use specific overrides

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/application/ApplicationContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/application/ApplicationContextTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/application/ApplicationContextTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -1,105 +1,105 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.jsr299.tck.tests.context.application;
-
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.test.audit.annotations.SpecAssertion;
-import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.testharness.impl.packaging.Artifact;
-import org.jboss.testharness.impl.packaging.IntegrationTest;
-import org.jboss.testharness.impl.packaging.Resource;
-import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
-import org.testng.annotations.Test;
-
-import com.gargoylesoftware.htmlunit.TextPage;
-import com.gargoylesoftware.htmlunit.WebClient;
-
-/**
- * @author David Allen
- * @author Jozef Hartinger
- */
- at Artifact
- at IntegrationTest(runLocally=true)
- at Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
-  @Resource(destination="SimplePage.html", source="SimplePage.html")
-})
- at SpecVersion(spec="cdi", version="20091101")
-public class ApplicationContextTest extends AbstractJSR299Test
-{
-
-   @Test(groups = { "contexts", "servlet", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "aa")
-   public void testApplicationScopeActiveDuringServiceMethod() throws Exception
-   {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      webClient.getPage(getContextPath() + "TestServlet?test=servlet");
-   }
-
-   @Test(groups = { "contexts", "servlet", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "ab")
-   public void testApplicationScopeActiveDuringDoFilterMethod() throws Exception
-   {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      webClient.getPage(getContextPath() + "SimplePage.html");
-   }
-   
-   
-   @Test(groups = { "contexts", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "ac")
-   public void testApplicationScopeActiveDuringServletContextListenerInvocation() throws Exception {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      webClient.getPage(getContextPath() + "TestServlet?test=servletContextListener");
-   }
-   
-   @Test(groups = { "contexts", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "ad")
-   public void testApplicationScopeActiveDuringHttpSessionListenerInvocation() throws Exception {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      webClient.getPage(getContextPath() + "TestServlet?test=httpSessionListener");
-   }
-   
-   @Test(groups = { "contexts", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "af")
-   public void testApplicationScopeActiveDuringServletRequestListenerInvocation() throws Exception {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      webClient.getPage(getContextPath() + "TestServlet?test=servletRequestListener");
-   }
-
-   @Test(groups = { "contexts", "integration" })
-   @SpecAssertion(section = "6.7.3", id = "e")
-   public void testApplicationContextSharedBetweenServletRequests() throws Exception
-   {
-      WebClient webClient = new WebClient();
-      webClient.setThrowExceptionOnFailingStatusCode(true);
-      TextPage firstRequestResult = webClient.getPage(getContextPath() + "IntrospectApplication");
-      assert firstRequestResult.getContent() != null;
-      assert Double.parseDouble(firstRequestResult.getContent()) != 0;
-      // Make a second request and make sure the same context is used
-      TextPage secondRequestResult = webClient.getPage(getContextPath() + "IntrospectApplication");
-      assert secondRequestResult.getContent() != null;
-      // should be same random number
-      assert Double.parseDouble(secondRequestResult.getContent()) == Double.parseDouble(firstRequestResult.getContent());
-   }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.jsr299.tck.tests.context.application;
+
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.test.audit.annotations.SpecAssertion;
+import org.jboss.test.audit.annotations.SpecVersion;
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.IntegrationTest;
+import org.jboss.testharness.impl.packaging.Resource;
+import org.jboss.testharness.impl.packaging.Resources;
+import org.jboss.testharness.impl.packaging.war.WebXml;
+import org.testng.annotations.Test;
+
+import com.gargoylesoftware.htmlunit.TextPage;
+import com.gargoylesoftware.htmlunit.WebClient;
+
+/**
+ * @author David Allen
+ * @author Jozef Hartinger
+ */
+ at Artifact
+ at IntegrationTest(runLocally=true)
+ at Resources({
+  @Resource(destination="SimplePage.html", source="SimplePage.html")
+})
+ at WebXml("web.xml")
+ at SpecVersion(spec="cdi", version="20091101")
+public class ApplicationContextTest extends AbstractJSR299Test
+{
+
+   @Test(groups = { "contexts", "servlet", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "aa")
+   public void testApplicationScopeActiveDuringServiceMethod() throws Exception
+   {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      webClient.getPage(getContextPath() + "TestServlet?test=servlet");
+   }
+
+   @Test(groups = { "contexts", "servlet", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "ab")
+   public void testApplicationScopeActiveDuringDoFilterMethod() throws Exception
+   {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      webClient.getPage(getContextPath() + "SimplePage.html");
+   }
+   
+   
+   @Test(groups = { "contexts", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "ac")
+   public void testApplicationScopeActiveDuringServletContextListenerInvocation() throws Exception {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      webClient.getPage(getContextPath() + "TestServlet?test=servletContextListener");
+   }
+   
+   @Test(groups = { "contexts", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "ad")
+   public void testApplicationScopeActiveDuringHttpSessionListenerInvocation() throws Exception {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      webClient.getPage(getContextPath() + "TestServlet?test=httpSessionListener");
+   }
+   
+   @Test(groups = { "contexts", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "af")
+   public void testApplicationScopeActiveDuringServletRequestListenerInvocation() throws Exception {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      webClient.getPage(getContextPath() + "TestServlet?test=servletRequestListener");
+   }
+
+   @Test(groups = { "contexts", "integration" })
+   @SpecAssertion(section = "6.7.3", id = "e")
+   public void testApplicationContextSharedBetweenServletRequests() throws Exception
+   {
+      WebClient webClient = new WebClient();
+      webClient.setThrowExceptionOnFailingStatusCode(true);
+      TextPage firstRequestResult = webClient.getPage(getContextPath() + "IntrospectApplication");
+      assert firstRequestResult.getContent() != null;
+      assert Double.parseDouble(firstRequestResult.getContent()) != 0;
+      // Make a second request and make sure the same context is used
+      TextPage secondRequestResult = webClient.getPage(getContextPath() + "IntrospectApplication");
+      assert secondRequestResult.getContent() != null;
+      // should be same random number
+      assert Double.parseDouble(secondRequestResult.getContent()) == Double.parseDouble(firstRequestResult.getContent());
+   }
+
+}


Property changes on: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/application/ApplicationContextTest.java
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ClientConversationContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ClientConversationContextTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ClientConversationContextTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -8,7 +8,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.Page;
@@ -25,7 +25,6 @@
 @Classes({Storm.class, ConversationTestPhaseListener.class, ConversationStatusServlet.class, Cloud.class, CloudController.class})
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="home.jspx", source="home.jsf"),
   @Resource(destination="cloud.jspx", source="cloud.jsf"),
   @Resource(destination="clouds.jspx", source="clouds.jsf"),
@@ -33,6 +32,7 @@
   @Resource(destination="/WEB-INF/faces-config.xml", source="faces-config.xml"),
   @Resource(destination="rain.jspx", source="rain.jsf")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class ClientConversationContextTest extends AbstractConversationTest
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/InvalidatingSessionDestroysConversationTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/InvalidatingSessionDestroysConversationTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/InvalidatingSessionDestroysConversationTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -7,7 +7,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
@@ -19,11 +19,11 @@
 @Classes({Storm.class, ConversationTestPhaseListener.class, ConversationStatusServlet.class, Cloud.class, CloudController.class})
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="WEB-INF/faces-config.xml", source="faces-config.xml"),
   @Resource(destination="clouds.jspx", source="clouds.jsf"),
   @Resource(destination="cloud.jspx", source="cloud.jsf")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class InvalidatingSessionDestroysConversationTest extends AbstractConversationTest
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/LongRunningConversationPropagatedByFacesContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/LongRunningConversationPropagatedByFacesContextTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/LongRunningConversationPropagatedByFacesContextTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -8,7 +8,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
@@ -23,12 +23,12 @@
 @Classes({Storm.class, ConversationTestPhaseListener.class, ConversationStatusServlet.class, Cloud.class})
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="WEB-INF/faces-config.xml", source="faces-config.xml"),
   @Resource(destination="storm.jspx", source="storm.jsf"),
   @Resource(destination="thunder.jspx", source="thunder.jsf"),
   @Resource(destination="lightening.jspx", source="lightening.jsf")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class LongRunningConversationPropagatedByFacesContextTest extends AbstractConversationTest
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ManualCidPropagationTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ManualCidPropagationTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/client/ManualCidPropagationTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -7,7 +7,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
@@ -23,12 +23,12 @@
 @Classes({Storm.class, ConversationTestPhaseListener.class, ConversationStatusServlet.class, Cloud.class, CloudController.class})
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="cloud.jspx", source="cloud.jsf"),
   @Resource(destination="storm.jspx", source="storm.jsf"),
   @Resource(destination="clouds.jspx", source="clouds.jsf"),
   @Resource(destination="/WEB-INF/faces-config.xml", source="faces-config.xml")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class ManualCidPropagationTest extends AbstractConversationTest
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -7,7 +7,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.TextPage;
@@ -16,9 +16,9 @@
 @Artifact
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="SimplePage.html", source="SimplePage.html")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class RequestContextTest extends AbstractJSR299Test
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/session/SessionContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/session/SessionContextTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/session/SessionContextTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -7,7 +7,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.TextPage;
@@ -16,9 +16,9 @@
 @Artifact
 @IntegrationTest(runLocally=true)
 @Resources({
-  @Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
   @Resource(destination="SimplePage.html", source="SimplePage.html")
 })
+ at WebXml("web.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class SessionContextTest extends AbstractJSR299Test
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/env/EnvInjectionTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/env/EnvInjectionTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/env/EnvInjectionTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -28,8 +28,8 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Packaging;
 import org.jboss.testharness.impl.packaging.PackagingType;
-import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 /**
@@ -40,9 +40,9 @@
 @Artifact
 @Packaging(PackagingType.WAR)
 @IntegrationTest
- at Resource(source="web.xml", destination="/WEB-INF/web.xml")
 @BeansXml("beans.xml")
 @SpecVersion(spec="cdi", version="20091101")
+ at WebXml("web.xml")
 public class EnvInjectionTest extends AbstractJSR299Test
 {
    @Test(groups = { "beanLifecycle", "commonAnnotations", "integration" })

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/persistenceContext/PersistenceContextInjectionTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/persistenceContext/PersistenceContextInjectionTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/resource/persistenceContext/PersistenceContextInjectionTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -14,7 +14,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Packaging;
 import org.jboss.testharness.impl.packaging.PackagingType;
-import org.jboss.testharness.impl.packaging.Resource;
+import org.jboss.testharness.impl.packaging.ear.PersistenceXml;
 import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
 import org.testng.annotations.Test;
 
@@ -26,8 +26,7 @@
 @Artifact
 @Packaging(PackagingType.WAR)
 @IntegrationTest
- at Resource(source = "persistence.xml", destination = "WEB-INF/classes/META-INF/persistence.xml")
-//@PersistenceXml("persistence.xml")
+ at PersistenceXml("persistence.xml")
 @BeansXml("beans.xml")
 @SpecVersion(spec="cdi", version="20091101")
 public class PersistenceContextInjectionTest extends AbstractJSR299Test

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/clientProxy/incontainer/ClientProxyTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/clientProxy/incontainer/ClientProxyTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/clientProxy/incontainer/ClientProxyTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -21,16 +21,15 @@
 import org.jboss.test.audit.annotations.SpecVersion;
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.IntegrationTest;
-import org.jboss.testharness.impl.packaging.Resource;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
 
 @Artifact
 @IntegrationTest(runLocally = true)
- at Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml")
 @SpecVersion(spec="cdi", version="20091101")
+ at WebXml("web.xml")
 public class ClientProxyTest extends AbstractJSR299Test
 {
    @Test

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/el/integration/IntegrationWithUnifiedELTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/el/integration/IntegrationWithUnifiedELTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/el/integration/IntegrationWithUnifiedELTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -23,7 +23,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
@@ -31,11 +31,11 @@
 @Artifact
 @IntegrationTest(runLocally = true)
 @Resources( { 
-   @Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml"), 
    @Resource(destination = "WEB-INF/faces-config.xml", source = "faces-config.xml"), 
    @Resource(destination = "JSFTestPage.jsp", source = "JSFTestPage.jsp"),
    @Resource(destination = "JSPTestPage.jsp", source = "JSPTestPage.jsp")})
 @SpecVersion(spec="cdi", version="20091101")
+ at WebXml("web.xml")
 public class IntegrationWithUnifiedELTest extends AbstractJSR299Test
 {
    @Test(groups = {"el" } )

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ContainerEventTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ContainerEventTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ContainerEventTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -41,7 +41,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 /**
@@ -52,13 +52,13 @@
  */
 @Artifact
 @Resources( { 
-   @Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml"),
    @Resource(destination = "WEB-INF/faces-config.xml", source = "faces-config.xml"),
    @Resource(destination = "WEB-INF/TestLibrary.tld", source = "TestLibrary.tld"),
    @Resource(destination = "TagPage.jsp", source = "TagPage.jsp"),
    @Resource(destination = "ManagedBeanTestPage.jsp", source = "ManagedBeanTestPage.jsp"),
    @Resource(source = "javax.enterprise.inject.spi.Extension", destination = "WEB-INF/classes/META-INF/services/javax.enterprise.inject.spi.Extension") })
 @IntegrationTest
+ at WebXml("web.xml")
 @SpecVersion(spec = "cdi", version = "20091101")
 public class ContainerEventTest extends AbstractJSR299Test
 {

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/InjectionIntoNonContextualComponentTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/InjectionIntoNonContextualComponentTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/InjectionIntoNonContextualComponentTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -24,7 +24,7 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 import com.gargoylesoftware.htmlunit.WebClient;
@@ -33,12 +33,12 @@
 @Artifact
 @IntegrationTest(runLocally = true)
 @Resources( { 
-   @Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml"),
    @Resource(destination = "WEB-INF/faces-config.xml", source = "faces-config.xml"),
    @Resource(destination = "WEB-INF/TestLibrary.tld", source = "TestLibrary.tld"), 
    @Resource(destination = "TagPage.jsp", source = "TagPage.jsp"),
    @Resource(destination = "ManagedBeanTestPage.jsp", source = "ManagedBeanTestPage.jsp")})
 @SpecVersion(spec="cdi", version="20091101")
+ at WebXml("web.xml")
 public class InjectionIntoNonContextualComponentTest extends AbstractJSR299Test
 {
    @Test

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/InjectionIntoWebServiceEndPointTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/InjectionIntoWebServiceEndPointTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/InjectionIntoWebServiceEndPointTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -24,14 +24,13 @@
 import org.jboss.test.audit.annotations.SpecVersion;
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.IntegrationTest;
-import org.jboss.testharness.impl.packaging.Resource;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 @Artifact
 @IntegrationTest(runLocally = true)
- at Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml")
 @SpecVersion(spec="cdi", version="20091101")
+ at WebXml("web.xml")
 public class InjectionIntoWebServiceEndPointTest extends AbstractJSR299Test
 {
    @WebServiceRef(wsdlLocation = "http://localhost:8080/org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ws.InjectionIntoWebServiceEndPointTest/TestWebService?wsdl")

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/broken/not/bean/InjectionPointTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/broken/not/bean/InjectionPointTest.java	2010-01-20 22:20:09 UTC (rev 5539)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/broken/not/bean/InjectionPointTest.java	2010-01-20 23:14:31 UTC (rev 5540)
@@ -23,15 +23,14 @@
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
 import org.jboss.testharness.impl.packaging.IntegrationTest;
-import org.jboss.testharness.impl.packaging.Resource;
-import org.jboss.testharness.impl.packaging.war.WarArtifactDescriptor;
+import org.jboss.testharness.impl.packaging.war.WebXml;
 import org.testng.annotations.Test;
 
 @Artifact
 @SpecVersion(spec = "cdi", version = "20091101")
 @ExpectedDeploymentException(DeploymentFailure.class)
 @IntegrationTest
- at Resource(destination = WarArtifactDescriptor.WEB_XML_DESTINATION, source = "web.xml")
+ at WebXml("web.xml")
 public class InjectionPointTest extends AbstractJSR299Test
 {
    @Test



More information about the weld-commits mailing list