[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: aop-mc-int tests with maven
kabir.khan@jboss.com
do-not-reply at jboss.com
Mon Apr 23 16:15:52 EDT 2007
"kabir.khan at jboss.com" wrote :
| In addition to the things I mentioned above, one thing that makes the console output impossible to read is that all the log messages/System.out.println()s from the tests appear in the console. With ant, the junit task would redirect these to to only appear in the log file. What maven-fu is needed to do that?
Here I mean running the tests.
| Running org.jboss.test.microcontainer.test.CreatedBeansLifecycleCallbackTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
| Running org.jboss.test.microcontainer.test.BeanCallingMethodInCtorTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
|
is a lot easier to parse for errors/success than
| Running org.jboss.test.microcontainer.test.CreatedBeansLifecycleCallbackTestCase
| 23859 DEBUG [CreatedBeansLifecycleCallbackTestCase] ==== setUp org.jboss.test.microcontainer.test.CreatedBeansLifecycleCallbackTestCase ====
| 23875 DEBUG [KernelFactory] Starting JBoss Kernel construction...
| 23875 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 0 milliseconds
| 23875 DEBUG [CreatedBeansLifecycleCallbackTestCase] No test specific deployment org/jboss/test/microcontainer/test/CreatedBeansLifecycleCallbackTestCase-aop.xml
| 23875 DEBUG [CreatedBeansLifecycleCallbackTestCase] No test specific deployment org/jboss/test/microcontainer/test/CreatedBeansLifecycleCallbackTestCase.xml
| 23875 DEBUG [CreatedBeansLifecycleCallbackTestCase] Security enabled: true
| 23875 DEBUG [CreatedBeansLifecycleCallbackTestCase] ==== Starting testLifecycleInterceptions ====
| 23875 DEBUG [CreatedBeansLifecycleCallbackTestCase] Deploying file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer-mvn/aop-mc-int/target/test-classes/org/jboss/test/microcontainer/test/CreatedBeansLifecycleCallbackTestCaseNotAutomatic.xml
| =====> Adding lifecycle org.jboss.aop.microcontainer.lifecycle.LifecycleCallbackDefinition at f1770a:ControllerState at be6d81{Configured}
| 23937 DEBUG [CreatedBeansLifecycleCallbackTestCase] Undeploying file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer-mvn/aop-mc-int/target/test-classes/org/jboss/test/microcontainer/test/CreatedBeansLifecycleCallbackTestCaseNotAutomatic.xml
| 23937 DEBUG [CreatedBeansLifecycleCallbackTestCase] testLifecycleInterceptions took 62ms
| 23937 DEBUG [CreatedBeansLifecycleCallbackTestCase] ==== Stopping testLifecycleInterceptions ====
| 23937 DEBUG [CreatedBeansLifecycleCallbackTestCase] ==== tornDown org.jboss.test.microcontainer.test.CreatedBeansLifecycleCallbackTestCase ====
| 23937 DEBUG [CreatedBeansLifecycleCallbackTestCase] Undeploying []
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
| Running org.jboss.test.microcontainer.test.BeanCallingMethodInCtorTestCase
| 23937 DEBUG [BeanCallingMethodInCtorTestCase] ==== setUp org.jboss.test.microcontainer.test.BeanCallingMethodInCtorTestCase ====
| 23953 DEBUG [KernelFactory] Starting JBoss Kernel construction...
| 23953 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 0 milliseconds
| 23953 DEBUG [BeanCallingMethodInCtorTestCase] No test specific deployment org/jboss/test/microcontainer/test/BeanCallingMethodInCtorTestCase-aop.xml
| 23953 DEBUG [BeanCallingMethodInCtorTestCase] Deploying file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer-mvn/aop-mc-int/target/test-classes/org/jboss/test/microcontainer/test/BeanCallingMethodInCtorTestCase.xml
| 23969 DEBUG [Aspect] Bound aspect InterceptedAdvice$Aspect; deployed:true
| 23984 DEBUG [AspectBinding] Bound binding ax6l-jgg29f-f0vbb4kk-1-f0vbblss-3e
| 23984 DEBUG [GenericBeanAspectFactory] Creating advice ax6l-jgg29f-f0vbb4kk-1-f0vbblsd-3d
| public
| private
| private
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] Security enabled: true
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] ==== Starting testIntercepted ====
| CalledInterceptor: [advisedMethod=public void org.jboss.test.microcontainer.support.BeanCallingMethodInCtor.publicMethod(), unadvisedMethod=public void org.jboss.test.microcontainer.support.BeanCallingMethodInCtor.publicMethod(), metadata=null, targetObject=org.jboss.test.microcontainer.support.BeanCallingMethodInCtor at 1fc9484, arguments=null]
| public
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] testIntercepted took 0ms
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] ==== Stopping testIntercepted ====
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] ==== tornDown org.jboss.test.microcontainer.test.BeanCallingMethodInCtorTestCase ====
| 24015 DEBUG [BeanCallingMethodInCtorTestCase] Undeploying [file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer-mvn/aop-mc-int/target/test-classes/org/jboss/test/microcontainer/test/BeanCallingMethodInCtorTestCase.xml]
| 24015 DEBUG [Aspect] Unbinding aspect InterceptedAdvice$Aspect
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
| /code]
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040002#4040002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040002
More information about the jboss-dev-forums
mailing list