java - DBUnit not able to find the dataset.xml class located in src/test/resources folder -


i have dbunit program not able find xml file located in src/test/resources folder.

maven folder structure

src/test/java - statedaotest.java src/test/resources - dataset.xml 

upon compiling project see both following files in target/test-classes folder:

  • statedaotest.class
  • dataset.xml

this error log see when run test:

error log:

running statedaotest tests run: 1, failures: 0, errors: 1, skipped: 0, time elapsed: 0.451 sec <<< failure! testgetstatebystatecode(statedaotest)  time elapsed: 0.02 sec  <<< error! java.io.filenotfoundexception: dataset.xml (the specified path invalid) 

pom.xml

<build>         <finalname>${project.artifactid}</finalname>         <testresources>             <testresource>                 <directory>${project.basedir}/src/test/resources</directory>             </testresource>         </testresources>         ..... 

can please guide ?


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -