Forums: Troubleshooting and Problems
Hi,
In your Maven project, there should be a src/test/resources node that contains a samples folder with the files that the unit test is looking for. Can you verify that those files are there?
Regards,
Tim
Hi, Tim:
The data files are there. I have solved the problem. The project folder was on network drive. I moved project folder to my local machine and reran the program. No problem appeared again. Not sure why is that. Thanks a lot.
yc
Hi, there:
I downloaded validator source code (trunk) and pulled it into NetBeans IDE as Marven project. When I tried to rebuild it, it gave error message as shown below:
Test set: org.opencdisc.validator.data.CombinedDataSourceTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.796 sec <<< FAILURE!
CombinedSourcesAllRecords(org.opencdisc.validator.data.CombinedDataSourceTest) Time elapsed: 0.359 sec <<< ERROR!
org.opencdisc.validator.data.InvalidDataException: The source file is missing or is not a file
at org.opencdisc.validator.data.DelimitedDataSource.<init>(DelimitedDataSource.java:85)
at org.opencdisc.validator.data.CombinedDataSourceTest.CombinedSourcesAllRecords(CombinedDataSourceTest.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
......................
It seems that program cannot find source data needed for testing. Source data is in config folder of the download. The question is how I can tell the program to find it.
Your responses are much appreciated in advance