Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1443

The servicemix-binding-component archetype test named MySpringComponentTest is missing a public constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1, 3.3
    • 3.2.2, 3.3
    • archetypes
    • None

    Description

      From the user mailing list:

      -------------------------------------------------------------------------------
      Test set: org.apache.servicemix.samples.helloworld.bc.MySpringComponentTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec
      <<< FAILURE!
      warning(junit.framework.TestSuite$1) Time elapsed: 0.01 sec <<< FAILURE!
      junit.framework.AssertionFailedError: Class
      org.apache.servicemix.samples.helloworld.bc.MySpringComponentTest has no
      public constructor TestCase(String name)
      at
      junit.framework.Assert.fail(E:/JKarel/code/junit/framework/Assert.java:143)
      at
      junit.framework.TestSuite$1.runTest(E:/JKarel/code/junit/framework/TestSuite.java:178)
      at
      junit.framework.TestCase.runBare(E:/JKarel/code/junit/framework/TestCase.java:129)
      at
      junit.framework.TestResult$1.protect(E:/JKarel/code/junit/framework/TestResult.java:100)
      at
      junit.framework.TestResult.runProtected(E:/JKarel/code/junit/framework/TestResult.java:117)
      at
      junit.framework.TestResult.run(E:/JKarel/code/junit/framework/TestResult.java:103)
      at
      junit.framework.TestCase.run(E:/JKarel/code/junit/framework/TestCase.java:120)
      at
      junit.framework.TestSuite.run(E:/JKarel/code/junit/framework/TestSuite.java:144)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      at
      org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)

      Attachments

        1. MySpringComponentTest.java.diff
          0.8 kB
          Bruce Snyder

        Activity

          People

            bsnyder Bruce Snyder
            bsnyder Bruce Snyder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: