3 Replies Latest reply: May 17, 2011 1:58 PM by Kuntal Mondal RSS

How to test EJB from JUnit Test case using "JBoss EJB 3.1 Embeddable"?

Kuntal Mondal Newbie

Hello All,

I am trying to test my EJBs from JUnit framework as part of  build (ant) - I am using "JBoss EJB 3.1 Embeddable".

I have followed all the instructions specified in http://community.jboss.org/wiki/EJB31Embeddable link.

I have a proper JBoss 6.0.Final AS installation - the standalone embeddable delegates to JBoss Embedded AS to boot up an AS instance in my JVM.

 

I am able to start the EJBContainer with following Junit test case.

public class HelloBeanTest {
   @Test
   public void testEjb() throws NamingException  {
      EJBContainer container = EJBContainer.createEJBContainer();
      container.close();
   }
}

 

Now, in order to invoke the EJBs from my test case, I put my J2EE application's "ejb.jar" in the classpath which contains  "META-INF\persistence.xml" file. All other dependent and 3rd party jars are also put in the classpath.

I find that Jboss is getting all bean definitions from "persistence.xml" file - but soon it dies, when it tries to start the Persistence unit, without throwing any error or hint and the junit test case fails.

Note: there is no problem with my application deployment if I start Jboss in usual way - but from JUnit I could not start the JBoss in embedded way!

 

Also during startup I get lots of  following "Warning" - which suggests  to configure an exclusion filter - but I do not know how to do that using ant. I am using ant for running Junit test cases.   The console output is shown below.

 

================================

    [junit] 15:14:02,783 WARN  [ClassPathEjbJarScanner] Dev Hack Alert: Ignoring class on ClassPath which can't be loaded due to java.lang.NoClassDefFoundError: org/apache/tiles/servlet/context/ServletTilesRequestContext while loading org.springframework.web.servlet.view.tiles2.TilesView$1; configure an exclusion filter so "/C:/Workspace/DM1.0/dependencies/repository/

spring/spring-framework-3.0.5.RELEASE/dist/org.springframework.web.servlet-3.0.5.RELEASE.jar" is not processed

    [junit] 15:14:02,787 WARN  [ClassPathEjbJarScanner] Dev Hack Alert: Ignoring class on ClassPath which can't be loaded due to java.lang.NoClassDefFoundError: org/apache/tiles/preparer/PreparerFactory while loading org.springframework.web.servlet.view.tiles2.AbstractSpringPreparerFactory; configure an exclusion filter so "/C:/Workspace/DM1.0/dependencies/repository/spring/spring-framework-3.0.5.RELEASE/dist/org.springframework.web.servlet-3.0.5.RELEASE.jar" is not processed

    [junit] 15:14:02,793 WARN  [ClassPathEjbJarScanner] Dev Hack Alert: Ignoring class on ClassPath which can't be loaded due to java.lang.NoClassDefFoundError: org/apache/tiles/preparer/PreparerFactory while loading org.springframework.web.servlet.view.tiles2.SpringBeanPreparerFactory; configure an exclusion filter so "/C:/Workspace/DM1.0/dependencies/repository/spring/spring-framework-3.0.5.RELEASE/dist/org.springframework.web.servlet-3.0.5.RELEASE.jar" is not processed

    [junit] 15:14:02,799 WARN  [ClassPathEjbJarScanner] Dev Hack Alert: Ignoring class on ClassPath which can't be loaded due to java.lang.NoClassDefFoundError: org/apache/tiles/servlet/context/ServletTilesApplicationContext while loading org.springframework.web.servlet.view.tiles2.SpringTilesApplicationContextFactory$SpringWildcardServletTilesApplicationContext; configure an exclusion filter so "/C:/Workspace/DM1.0/dependencies/repository/spring/spring-framework-3.0.5.RELEASE/dist/org.springframework.web.servlet-3.0.5.RELEASE.jar" is not processed

.

.

.

    [junit] 15:14:02,827 WARN  [ClassPathEjbJarScanner] Dev Hack Alert: Ignoring class on ClassPath which can't be loaded due to java.lang.NoClassDefFoundError: org/apache/tiles/Initial

izable while loading org.springframework.web.servlet.view.tiles2.SpringTilesApplicationContextFactory; configure an exclusion filter so "/C:/Workspace/DM1.0/dependencies/repository/spri

ng/spring-framework-3.0.5.RELEASE/dist/org.springframework.web.servlet-3.0.5.RELEASE.jar" is not processed

    [junit] Boot Log available in: C:\Users\mondalku\AppData\Local\Temp\

    [junit] 15:14:08,045 INFO  [AbstractJBossASServerBase] Server Configuration:

    [junit]

    [junit]     JBOSS_HOME URL: file:/C:/Workspace/DM1.0/dependencies/repository/appserver/

    [junit]     Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml

    [junit]     Common Base: $JBOSS_HOME\common/

    [junit]     Common Library: $JBOSS_HOME\common/lib/

    [junit]     Server Name: default

    [junit]     Server Base: $JBOSS_HOME\server/

    [junit]     Server Library: $JBOSS_HOME\server/default/lib/

    [junit]     Server Config: $JBOSS_HOME\server/default/conf/

    [junit]     Server Home: $JBOSS_HOME\server/default/

    [junit]     Server Data: $JBOSS_HOME\server/default/data/

    [junit]     Server Log: $JBOSS_HOME\server/default/log/

    [junit]     Server Temp: $JBOSS_HOME\server/default/tmp/

    [junit]

    [junit] 15:14:08,098 INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]

    [junit] 15:14:11,314 INFO  [ServerInfo] Java version: 1.6.0_23,Sun Microsystems Inc.

    [junit] 15:14:11,315 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

    [junit] 15:14:11,315 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 19.0-b09,Sun Microsystems Inc.

    [junit] 15:14:11,315 INFO  [ServerInfo] OS-System: Windows Vista 6.0,x86

.

.

.

.

    [junit] 15:14:48,650 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=server,name=UserStatBean,service=EJB3
    [junit] 15:14:48,651 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:
    [junit] 15:14:48,651 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:
    [junit] 15:14:48,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jboss-switchboard:appName=se,module=server,name=UserStatBean; Required: Create
    [junit] 15:14:48,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jboss.ejb:service=EJBTimerService; Required: Described
    [junit] 15:14:48,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         persistence.unit:unitName=server#edmPU; Required: Described
    [junit] 15:14:48,745 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jboss-injector:topLevelUnit=server,unit=server,bean=UserStatBean; Required: Described
    [junit] 15:14:48,757 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:
    [junit] 15:14:48,757 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jndi:UserStatBean/remote
    [junit] 15:14:48,757 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jndi:UserStatBean
    [junit] 15:14:48,757 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         Class:com.im.server.edm.api.UserStatRemote
    [junit] 15:14:48,758 INFO  [org.jboss.ejb3.deployers.JBossASKernel]         jndi:UserStatBean/remote-com..im.server.edm.api.UserStatRemote
    [junit] 15:14:48,758 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=server,name=UserStatBean,service=EJB3) to KernelDeployment of: server
    [junit] 15:14:49,014 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=server#edmPU
    [junit] Test com.im.server.edm.ejb.ProjectBeanTest FAILED

BUILD SUCCESSFUL
Total time: 1 minute 17 seconds

===================================

 

As part of classpath I have to keep following JBoss JARs.

But I am not sure if I have to keep all the JARs which are avaiable in {JBOSS}/common/lib and {JBOSS}/lib (??) folders.

 

 

jboss-ejb3-embedded-standalone.jar

jboss-ejb-api_3.1_spec.jar

javassist.jar

commons-collections.jar

validation-api.jar

hibernate-jpa-2.0-api.jar

hibernate-entitymanager.jar

hibernate-commons-annotations.jar

commons-collections.jar

log4j.jar

slf4j-api-1.6.1.jar

jboss-ejb3-ext-api.jar

mail.jar

quartz.jar

hibernate-core.jar

jboss-servlet-api_3.0_spec.jar

dom4j.jar

commons-logging-1.1.1.jar


 

 

 

Any help/suggestion  will be much appreciated.

- Kuntal

 

  • 1. How to test EJB fromJUnit Test case using "JBoss EJB 3.1 Embeddable"?
    Carlo de Wolf Master

    I'm afraid the exclusion filter is not configurable at the moment.

    https://github.com/jbossejb3/jboss-ejb3-embedded/blob/master/impl-base/src/main/java/org/jboss/ejb3/embedded/impl/base/scanner/ClassPathEjbJarScanner.java#L126

     

    I haven't used ant in a while. Try adding setting showoutput to true on the junit task, or ant  -v / -d. Hopefully ant will then output the error.

     

    Alternatively upload a test case to github, so we can reproduce your issue.

  • 2. Re: How to test EJB fromJUnit Test case using "JBoss EJB 3.1 Embeddable"?
    Kuntal Mondal Newbie

    Hi Carlo,

    Thanks for specifying the ant option.

     

    One thing I am not clear here is: do I need to keep my "app.ear" file under JBOSS/server/default/deploy directory while running the ant unit-test or not?

     

    a) If I keep the "app.ear" file under JBOSS/server/default/deploy directory and run the junit test, then container comes up with my app.ear deployed properly,  but when I try to access an EJB from my junit test, I get "java.lang.ClassNotFoundException" for my server side classes.

     

    b) If I do not keep the "app.ear" file under JBOSS/server/default/deploy directory, and keep the "ejb.jar" in classpath, I face same problem  --- JBoss tries to start persistence unit and after a while the program terminates.

    Adding "-v -d" ant-option does not give me any extra error or exception trace.

     

    So at least in first case I can see my EJBs are deployed (as part of app.ear deployment) - but this is probably not the right step.

    Can you pls. advise?

    Can you tell me what are the JBoss libraries I must need to put on my classpath? Currently I have following jars from JBOSS\client and JBOSS\common\lib directories:

     

         jboss-ejb3-embedded-standalone.jar,

         jboss-ejb-api_3.1_spec.jar, 

         javassist.jar

         activation.jar,

         jboss-transaction-api_1.1_spec.jar

     

           commons-collections.jar,

    validation-api.jar,

    hibernate-jpa-2.0-api.jar,

    hibernate-entitymanager.jar" />

    hibernate-commons-annotations.jar,

    commons-collections.jar,

    jboss-logmanager.jar,

    aopalliance.jar,

    antlr.jar,

    log4j.jar

     

     

    If I put all the jars from JBOSS/common/lib and/or JBOSS/lib, the program terminates even long before.

     

     

    Thanks in advance,

  • 3. Re: How to test EJB fromJUnit Test case using "JBoss EJB 3.1 Embeddable"?
    Kuntal Mondal Newbie

    Good news - I got some progress and now I am able to invoke an EJB api - which is great.

    I realized that I do not need to deploy my "app.ear" in JBOSS/deploy directory - rather JBoss will automatically deploy all the EJBs at runtime.

     

    But I still have i burning open issue.

     

    1. While the JBoss app container is being closed, I get following errors.

    The "server.jar" contains my EJBs and Jboss fails to undeploy this jar (i.e. Error removing classloader) while the container is being shutdown (i.e. when I invoke EJBContainer.close()).

     

    Can you pls. tell me if there is a way I can fix this error?

    How severe is this error?

     

    If I do not invoke EJBContainer.close(),this error does not occur and the unit test cases are also executed as they should be.

    Wondering will it cause any resource leaking (or any other) problem as I am not closing the EJBContainer as part of JUnit's tearDown() method?

     

    ==========================================================================

        [junit] 13:18:04,796 INFO  [TomcatDeployment] undeploy, ctxPath=/invoker

        [junit] 13:18:04,813 INFO  [jbossatx] ARJUNA-32018 Destroying TransactionManagerService

        [junit] 13:18:04,821 INFO  [jbossatx] ARJUNA-32014 Stopping transaction recovery manager

        [junit] 13:18:05,010 INFO  [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) stopped

        [junit] 13:18:05,118 INFO  [MailService] Mail service 'java:/Mail' removed from JNDI

        [junit] 13:18:05,125 INFO  [JMXConnector] JMXConnector stopped

        [junit] 12:59:44,400 ERROR [AOPClassLoaderDeployer] Error during undeploy: vfs:///C:/Workspace/DM1.0/components_2011/out/artifacts/server.jar: java.lang.NullPointerException

        [junit]     at org.jboss.aop.asintegration.jboss5.AOPClassLoaderInitializer.unregisterLoaders(AOPClassLoaderInitializer.java:54)

        [junit]     at org.jboss.aop.asintegration.jboss5.AOPClassLoaderDeployer.internalUndeploy(AOPClassLoaderDeployer.java:77) [jboss-aop-deployers.jar:2.2.1.GA]

        [junit]     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:117)

        [junit]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204)

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1862) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1769) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1724) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:756)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:669)

        [junit]     at org.jboss.dependency.plugins.AbstractController.shutdown(AbstractController.java:270)

        [junit]     at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.shutdownKernelAndDeployer(AbstractMCServerBase.java:202)

        [junit]     at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doShutdown(AbstractMCServerBase.java:160)

        [junit]     at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:304)

        [junit]     at org.jboss.ejb3.embedded.sub.JBossSubmersibleEJBContainer.close(JBossSubmersibleEJBContainer.java:76)

        [junit]     at com.im.server.edm.ejb.ProjectBeanTest.testEjb(ProjectBeanTest.java:121) [:]

        [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]

        [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_23]

        [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

        [junit]     at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_23]

        [junit]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.7.jar:]

        [junit]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.7.jar:]

        [junit]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) [junit-4.7.jar:]

        [junit]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.7.jar:]

        [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) [junit-4.7.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518) [ant-junit.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052) [ant-junit.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906) [ant-junit.jar:]

        [junit]

        [junit] 12:59:44,543 WARN  [AbstractDeploymentContext] Error removing classloader for vfs:///C:/Workspace/DM1.0/components_2011/out/artifacts/server.jar: java.lang.NullPointerException

        [junit]     at org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer.removeClassLoader(AbstractLevelClassLoaderSystemDeployer.java:149) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.removeClassLoader(AbstractDeploymentContext.java:602)

        [junit]     at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.removeClassLoader(AbstractDeploymentContext.java:615)

        [junit]     at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.removeClassLoader(AbstractDeploymentUnit.java:171)

        [junit]     at org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer.undeploy(AbstractClassLoaderDeployer.java:61)

        [junit]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204)

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1862) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1769) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1724) [jboss-deployers-impl.jar:2.2.0.GA]

        [junit]     at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:756)

        [junit]     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:669)

        [junit]     at org.jboss.dependency.plugins.AbstractController.shutdown(AbstractController.java:270)

        [junit]     at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.shutdownKernelAndDeployer(AbstractMCServerBase.java:202)

        [junit]     at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doShutdown(AbstractMCServerBase.java:160)

        [junit]     at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:304)

        [junit]     at org.jboss.ejb3.embedded.sub.JBossSubmersibleEJBContainer.close(JBossSubmersibleEJBContainer.java:76)

        [junit]     at com.im.server.edm.ejb.ProjectBeanTest.testEjb(ProjectBeanTest.java:121) [:]

        [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]

        [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_23]

        [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

        [junit]     at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_23]

        [junit]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.7.jar:]

        [junit]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.7.jar:]

        [junit]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) [junit-4.7.jar:]

        [junit]     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.7.jar:]

        [junit]     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) [junit-4.7.jar:]

        [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.7.jar:]

        [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) [junit-4.7.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518) [ant-junit.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052) [ant-junit.jar:]

        [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906) [ant-junit.jar:]

        [junit]

        [junit] 12:59:44,753 INFO  [AbstractServer] Stopped: JBossAS [6.0.0.Final "Neo"] in 5s:41ms