difi / datahotel

GNU General Public License v3.0
21 stars 2 forks source link

Missing file in test suite #20

Closed larsga closed 11 years ago

larsga commented 11 years ago

Running mvn package I get a warning from the test suite about a missing file. To me it looks like this test should fail, but for some reason it does not.

The output is:

Running no.difi.datahotel.logic.ChunkBeanTest Jan 10, 2013 11:16:36 AM no.difi.datahotel.logic.ChunkBean update INFO: Building chunk. Jan 10, 2013 11:16:36 AM no.difi.datahotel.logic.ChunkBean update INFO: Building chunk. Jan 10, 2013 11:16:36 AM no.difi.datahotel.logic.ChunkBean update WARNING: /Users/larsga/cvs-co/datahotel/server/target/test-classes/datahotel/slave/difi/test/simple-not-here/dataset.csv (No such file or directory) java.io.FileNotFoundException: /Users/larsga/cvs-co/datahotel/server/target/test-classes/datahotel/slave/difi/test/simple-not-here/dataset.csv (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:120) at no.difi.datahotel.util.csv.CSVParserImpl.getCharset(CSVParserImpl.java:162) at no.difi.datahotel.util.csv.CSVParserImpl.(CSVParserImpl.java:43) at no.difi.datahotel.util.csv.CSVParserFactory.getCSVParser(CSVParserFactory.java:21) at no.difi.datahotel.logic.ChunkBean.update(ChunkBean.java:62) at no.difi.datahotel.logic.ChunkBeanTest.testUpdateError(ChunkBeanTest.java:68) 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) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) 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) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

klakegg commented 11 years ago

The files are not missing, but some of the tests were removing them.

This is fixed in 1.3.0.