my dog learned polymorphism
The moose likes Testing and the fly likes NoSuchTableException when (trying) to use DBUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "NoSuchTableException when (trying) to use DBUnit" Watch "NoSuchTableException when (trying) to use DBUnit" New topic
Author

NoSuchTableException when (trying) to use DBUnit

William Fernandes
Greenhorn

Joined: Jul 21, 2008
Posts: 13
Hello,

I'm trying to use DBUnit (version 2.4.8) because I like the idea but the framework is detestable.

I'm following the Getting Started session of the official website, doing the most simple basic test, but it's not working when I try to run the test:


My dataset.xml (which it loads - located in the classpath, above src folder):


The error stack I get when I run my test:


Yes, the table users does exist in my local MySQL. I tried to debug and I saw that the Map which it loads with the table names comes empty, so it considers that the current schema is empty, which is not.

What am I doing wrong?

Thanks


SCJP 6

"A peaceful man stands tall"

"I tremble for my country when I reflect that God is just."
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: NoSuchTableException when (trying) to use DBUnit
 
Similar Threads
Junit error
GWTTestCase error -- The test class ... was not found in module ...
Jboss rar JNDI lookup
Junit and Ejb - com/ibm/ejs/jts/jts/Current
Junit for JSF controller