Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-537

Tidy up junit test. Several test show errors that are logged as intentional.

    Details

      Description

      A few junit test display errors that are not marked as intentional. For example the SqlTableGatewayListenerUnitTest:
      [java] [junit] ------------- Standard Error -----------------
      [java] [junit] java.lang.NullPointerException
      [java] [junit] at java.lang.Class.forName0(Native Method)
      [java] [junit] at java.lang.Class.forName(Class.java:242)
      [java] [junit] at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:48)
      [java] [junit] at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:65)
      [java] [junit] at org.jboss.soa.esb.services.registry.RegistryFactory.getRegistry(RegistryFactory.java:51)
      [java] [junit] at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:206)
      [java] [junit] at org.jboss.soa.esb.listeners.gateway.SqlTableGatewayListener.doInitialise(SqlTableGatewayListener.java:112)
      [java] [junit] at org.jboss.soa.esb.listeners.gateway.SqlTableGatewayListenerUnitTest.testGateway(SqlTableGatewayListenerUnitTest.java:163)
      [java] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
      [java] [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
      [java] [junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
      [java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
      [java] [junit] at junit.framework.TestResult.run(TestResult.java:113)
      [java] [junit] at junit.framework.TestCase.run(TestCase.java:120)
      [java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
      [java] [junit] at junit.framework.TestSuite.run(TestSuite.java:223)
      [java] [junit] at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
      [java] [junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
      [java] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
      [java] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
      [java] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                beve Daniel Bevenius
                Reporter:
                beve Daniel Bevenius
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: