Posts

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at info@openhub.net

Technical Issue Help : Obtaining file in DBTestCase?

I have tried "dataset.xml" and "classpath:dataset.xml" I have: protected IDataSet getDataSet() throws Exception { return new FlatXmlDataSetBuilder().build(new ... [More] FileInputStream("classpath:dataset.xml")); } public void testNothing() { System.out.println("Tada!"); } I get: Test set: edu.berkeley.ouae.batch.DBSampleTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.027 sec <<< FAILURE! testNothing(edu.berkeley.ouae.batch.DBSampleTest) Time elapsed: 0.022 sec <<< ERROR! java.io.FileNotFoundException: classpath:dataset.xml (The system cannot find the file specified) I'm using: org.dbunit dbunit 2.4.8 Thanks! Regards, Rich Katz [Less]

Views
Author
Posted
306
almost 9 years ago