aspose file tools*
The moose likes Testing and the fly likes DBUnit test class failure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "DBUnit test class failure" Watch "DBUnit test class failure" New topic
Author

DBUnit test class failure

Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

Hi,

I'm trying to run DbUnit (a JUnit extension) test class targeted at database 'data test'.

Below is the error message/log I'm getting while running the test class (StateInfoTest.java).
Request you to please provide hope of ray to resolve it.
----------------------------------------------------------------------------------------------------------------
[ERROR] org.codehaus.groovy.maven.gossip.config.Configurator - Failed to configure; using fall-back provider
org.codehaus.groovy.maven.gossip.config.ConfigurationException: Missing property: url
at org.codehaus.groovy.maven.gossip.model.source.URLSource.load(URLSource.java:59)
at org.codehaus.groovy.maven.gossip.config.Configurator.loadBootstrap(Configurator.java:103)
at org.codehaus.groovy.maven.gossip.config.Configurator.configure(Configurator.java:50)
at org.codehaus.groovy.maven.gossip.Gossip.<init>(Gossip.java:49)
at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:37)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:32)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
at org.dbunit.DatabaseTestCase.<clinit>(DatabaseTestCase.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at junit.framework.TestSuite.createTest(TestSuite.java:61)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
at junit.framework.TestSuite.<init>(TestSuite.java:146)
at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:26)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:34)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:24)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-------------------------------------------------------------------------------------------------------
I wonder that the above error trace was not contain the test class(StateInfoTest.java) which I ran.

The .jars' I have used:

1.dbunit-2.3.0.jar
2.commons-io-1.0


Appreciate your help.


Regards,
Murali
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DBUnit test class failure
 
Similar Threads
Facing problem in Junit4 and spring 2.5 configuration
DBUnit test case ERROR
Spring Error Log
Error In creating bean with name sessionFactory
Can you mock a database?