Author: mazi
Date: 2010-04-13 11:22:44 -0400 (Tue, 13 Apr 2010)
New Revision: 6106
Modified:
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/FilterInjectionTest.java
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ListenerInjectionTest.java
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ServletInjectionTest.java
Log:
WELDX-84: removed redundant code
Modified:
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/FilterInjectionTest.java
===================================================================
---
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/FilterInjectionTest.java 2010-04-13
15:19:46 UTC (rev 6105)
+++
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/FilterInjectionTest.java 2010-04-13
15:22:44 UTC (rev 6106)
@@ -13,9 +13,6 @@
import org.jboss.testharness.impl.packaging.Resource;
import org.jboss.testharness.impl.packaging.Resources;
import org.jboss.weld.test.AbstractWeldTest;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@Artifact(addCurrentPackage=false)
@@ -30,17 +27,6 @@
})
public class FilterInjectionTest extends AbstractWeldTest
{
-
- private static final Logger log = LoggerFactory.getLogger(FilterInjectionTest.class);
-
- @Override
- @BeforeClass
- public void beforeClass() throws Throwable
- {
- super.beforeClass();
- }
-
-
@Test
public void testFilterInjection() throws Exception
{
Modified:
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ListenerInjectionTest.java
===================================================================
---
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ListenerInjectionTest.java 2010-04-13
15:19:46 UTC (rev 6105)
+++
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ListenerInjectionTest.java 2010-04-13
15:22:44 UTC (rev 6106)
@@ -13,10 +13,6 @@
import org.jboss.testharness.impl.packaging.Resource;
import org.jboss.testharness.impl.packaging.Resources;
import org.jboss.weld.test.AbstractWeldTest;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.Test;
@Artifact(addCurrentPackage=false)
@IntegrationTest(runLocally=true)
@@ -31,17 +27,6 @@
})
public class ListenerInjectionTest extends AbstractWeldTest
{
-
- private static final Logger log =
LoggerFactory.getLogger(ListenerInjectionTest.class);
-
- @Override
- @BeforeClass
- public void beforeClass() throws Throwable
- {
- super.beforeClass();
- }
-
-
// This test currently fails showing that injection into Listeners doesn't
// work in Tomcat standalone.
// @Test
Modified:
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ServletInjectionTest.java
===================================================================
---
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ServletInjectionTest.java 2010-04-13
15:19:46 UTC (rev 6105)
+++
servlet/trunk/tests/src/test/java/org/jboss/weld/test/tomcat/lookup/ServletInjectionTest.java 2010-04-13
15:22:44 UTC (rev 6106)
@@ -1,23 +1,15 @@
package org.jboss.weld.test.tomcat.lookup;
-
-import javax.servlet.http.HttpServletResponse;
-
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.methods.GetMethod;
-import org.jboss.testharness.impl.packaging.Artifact;
-import org.jboss.testharness.impl.packaging.Classes;
-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.*;
import org.jboss.weld.test.AbstractWeldTest;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
+import javax.servlet.http.HttpServletResponse;
+
@Artifact(addCurrentPackage=false)
@IntegrationTest(runLocally=true)
@Resources({
@@ -30,17 +22,7 @@
})
public class ServletInjectionTest extends AbstractWeldTest
{
-
- private static final Logger log =
LoggerFactory.getLogger(ServletInjectionTest.class);
-
- @Override
- @BeforeClass
- public void beforeClass() throws Throwable
- {
- super.beforeClass();
- }
-
-
+
@Test
public void testServletInjection() throws Exception
{