You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Copo <CO...@hotmail.com> on 2008/07/01 10:20:39 UTC

Re: BC install problem

Here is the surfire report :

-------------------------------------------------------------------------------
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)

Thank you :)


bsnyder wrote:
> 
> On Thu, Jun 26, 2008 at 3:55 AM, Copo <CO...@hotmail.com> wrote:
>>
>> thank you, without test it works!
>> But how do you think I could solve this JUnit problem?
> 
> Take a look in target/surefire-reports/ for the text file about the
> test failure and paste its contents in a reply. It should provide some
> direction as to the cause of the failure.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> 
> Blog: http://bruceblog.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/BC-install-problem-tp18108893p18211551.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: BC install problem

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Jul 1, 2008 at 2:20 AM, Copo <CO...@hotmail.com> wrote:
>
> Here is the surfire report :
>
> -------------------------------------------------------------------------------
> 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)

The problem is clearly stated above. The class named
MySpringComponentTest does not have a public constructor whose
signature is TestCase(String name). You just need to add the following
constructor to MySpringComponentTest.java:

    public MySpringComponentTest(String name) {
        super(name);
    }

I have already patched this in the 3.2 branch and the archetypes trunk
so it will be fixed in the next release. See the following JIRA issue
for more information:

https://issues.apache.org/activemq/browse/SM-1443

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/