y Yuan
on

 

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

Forums: Troubleshooting and Problems

t Tim
on August 9, 2011

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

y Yuan
on August 10, 2011

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

Want a demo?

Let’s Talk.

We're eager to share and ready to listen.

Cookie Policy

Pinnacle 21 uses cookies to make our site easier for you to use. By continuing to use this website, you agree to our use of cookies. For more info visit our Privacy Policy.