tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From radcor...@apache.org
Subject [tomee] 48/48: TOMEE-2365 - Fixed tests.
Date Wed, 09 Jan 2019 17:26:36 GMT
This is an automated email from the ASF dual-hosted git repository.

radcortez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit 38ebd25299e1c9c0c011bfa55126a674e465997c
Author: Roberto Cortez <radcortez@yahoo.com>
AuthorDate: Wed Jan 9 02:05:09 2019 +0000

    TOMEE-2365 - Fixed tests.
---
 .../org/apache/tomee/security/AbstractTomEESecurityTest.java  | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tomee/tomee-security/src/test/java/org/apache/tomee/security/AbstractTomEESecurityTest.java
b/tomee/tomee-security/src/test/java/org/apache/tomee/security/AbstractTomEESecurityTest.java
index 1b8e90b..93572ca 100644
--- a/tomee/tomee-security/src/test/java/org/apache/tomee/security/AbstractTomEESecurityTest.java
+++ b/tomee/tomee-security/src/test/java/org/apache/tomee/security/AbstractTomEESecurityTest.java
@@ -20,9 +20,7 @@ import org.apache.openejb.loader.JarLocation;
 import org.apache.openejb.util.NetworkUtil;
 import org.apache.tomee.embedded.Configuration;
 import org.apache.tomee.embedded.Container;
-import org.apache.tomee.security.servlet.TomEESecurityServletContainerInitializer;
 import org.junit.AfterClass;
-import org.junit.Before;
 import org.junit.BeforeClass;
 
 public abstract class AbstractTomEESecurityTest {
@@ -36,9 +34,7 @@ public abstract class AbstractTomEESecurityTest {
                         .http(NetworkUtil.getNextAvailablePort())
                         .property("openejb.container.additional.exclude", "org.apache.tomee.security.")
                         .property("openejb.additional.include", "tomee-"))
-                .deployPathsAsWebapp(
-                        JarLocation.jarLocation(AbstractTomEESecurityTest.class),
-                        JarLocation.jarLocation(TomEESecurityServletContainerInitializer.class));
+                .deployPathsAsWebapp(JarLocation.jarLocation(AbstractTomEESecurityTest.class));
     }
 
     @AfterClass
@@ -46,11 +42,6 @@ public abstract class AbstractTomEESecurityTest {
         container.close();
     }
 
-    @Before
-    public void setUpBefore() throws Exception {
-        container.inject(this);
-    }
-
     protected String getAppUrl() {
         return "http://localhost:" + container.getConfiguration().getHttpPort();
     }


Mime
View raw message