[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: AOP Integration tests failing

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Sep 18 14:22:27 EDT 2006


Replacing the microcontainer/thirdparty/jboss/test/lib/jboss-test.jar with one built from https://svn.jboss.org/repos/jbossas/projects/test/trunk/test

reduces 

  |     [junit] Running org.jboss.test.microcontainer.test.MicrocontainerAllTestCase
  |     [junit] Tests run: 233, Failures: 1, Errors: 60, Time elapsed: 2.688 sec
  |     [junit] Test org.jboss.test.microcontainer.test.MicrocontainerAllTestCase FAILED
  | 

to


  |     [junit] Running org.jboss.test.microcontainer.test.MicrocontainerAllTestCase
  |     [junit] Tests run: 529, Failures: 0, Errors: 1, Time elapsed: 5.672 sec
  |     [junit] Test org.jboss.test.microcontainer.test.MicrocontainerAllTestCase FAILED
  | 

The one error remaining is:

  | Testcase: testArrayPreinstantiated took 0 sec
  |         Caused an ERROR
  | Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
  | java.lang.RuntimeException: Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
  |         at org.jboss.test.kernel.config.support.XMLUtil.<init>(XMLUtil.java:74)
  |         at org.jboss.test.kernel.config.test.AbstractKernelConfigTest.bootstrapXML(AbstractKernelConfigTest.java:72)
  |         at org.jboss.test.kernel.config.test.ArrayXMLTestCase.customArrayPreinstantiated(ArrayXMLTestCase.java:61)
  |         at org.jboss.test.kernel.config.test.ArrayTestCase.testArrayPreinstantiated(ArrayTestCase.java:152)
  |         at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  |         at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  |         at junit.extensions.TestSetup.run(TestSetup.java:23)
  | 

I still see a few of these in the test logs, but they seem to somehow
be handled gracefully, and not causing errors

  | 922 DEBUG [RegistryTestCase] ==== setUp org.jboss.test.kernel.registry.test.RegistryTestCase ====
  | 922 WARN  [PropertiesVisitorImpl] Failed to load properties for name: bootstrap
  | java.lang.NullPointerException
  |         at java.io.FilterInputStream.read(FilterInputStream.java:111)
  |         at java.io.FilterInputStream.read(FilterInputStream.java:90)
  |         at java.util.Properties$LineReader.readLine(Properties.java:365)
  |         at java.util.Properties.load(Properties.java:293)
  |         at org.jboss.test.visitor.PropertiesVisitorImpl.loadProperties(Unknown Source)
  |         at org.jboss.test.visitor.PropertiesVisitorImpl.visitMethods(Unknown Source)
  |         at org.jboss.test.visitor.TypeHierarchyTraversal.processType(Unknown Source)
  |         at org.jboss.test.visitor.TypeHierarchyTraversal.visit(Unknown Source)
  |         at org.jboss.test.security.TestsPolicyPlugin.<init>(Unknown Source)
  |         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  |         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  |         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  |         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  |         at org.jboss.test.security.PolicyPlugin.getInstance(Unknown Source)
  |         at org.jboss.test.AbstractTestDelegate.setUpSecurity(Unknown Source)
  |         at org.jboss.test.AbstractTestDelegate.setUp(Unknown Source)
  |         at org.jboss.test.AbstractTestSetup.setUp(Unknown Source)
  |         at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
  |         at junit.framework.TestResult.runProtected(TestResult.java:124)
  |         at junit.extensions.TestSetup.run(TestSetup.java:23)
  |         at junit.framework.TestSuite.runTest(TestSuite.java:208)
  |         at junit.framework.TestSuite.run(TestSuite.java:203)
  |         at junit.framework.TestSuite.runTest(TestSuite.java:208)
  |         at junit.framework.TestSuite.run(TestSuite.java:203)
  |         at junit.framework.TestSuite.runTest(TestSuite.java:208)
  |         at junit.framework.TestSuite.run(TestSuite.java:203)
  |         at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
  |         at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
  |         at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
  | 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972393#3972393

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972393



More information about the jboss-dev-forums mailing list