This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Testing and the fly likes dbunit: NoSuchTableException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "dbunit: NoSuchTableException" Watch "dbunit: NoSuchTableException" New topic
Author

dbunit: NoSuchTableException

Antonio Diaz Sanchez
Greenhorn

Joined: Mar 26, 2010
Posts: 6

Hi,

I am trying to load an XML file into a HSQLDB (2.4.7) memory database by using DBUnit (1.8). I always get a "NoSuchTableException", and definitely I don't know what I am doing wrong.

Here is the code (it is very simple):



An the XML is being read is:



The error message is:


4730 main INFO org.dbunit.database.DatabaseDataSet - Table 'plasoa' not found in tableMap=org.dbunit.dataset.OrderedTableNameMap[_tableNames=[], _tableMap={}, _caseSensitiveTableNames=false]
Exception in thread "main" org.dbunit.dataset.NoSuchTableException: plasoa
at org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:282)
at org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.java:109)
at org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:79)
at extracttbo.Main.main(Main.java:39)


What is wrong?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dbunit: NoSuchTableException
 
Similar Threads
This is confusing - DbUnit
NoSuchTableException when (trying) to use DBUnit
Getting Wierd Problem while executing DBUnit Test cases
Double insertion using entity lifecycle listener
DBUnit question - NoSuchTableException