On 1 October 2011 12:54, Jörg Schaible <joerg.schai...@gmx.de> wrote: > Hi Hen, > > Henri Yandell wrote: > >> -1. >> >> I got the unit test failure again: >> >> Failed tests: testTailer(org.apache.commons.io.input.TailerTest): >> fileNotFound should not be called expected:<0> but was:<1> >> >> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.959 >> sec <<< FAILURE! >> testTailer(org.apache.commons.io.input.TailerTest) Time elapsed: >> 0.925 sec <<< FAILURE! >> junit.framework.AssertionFailedError: fileNotFound should not be >> called expected:<0> but was:<1> >> at junit.framework.Assert.fail(Assert.java:50) >> at junit.framework.Assert.failNotEquals(Assert.java:287) >> at junit.framework.Assert.assertEquals(Assert.java:67) >> at junit.framework.Assert.assertEquals(Assert.java:199) >> at >> org.apache.commons.io.input.TailerTest.testTailer(TailerTest.java:150) >> >> OS X. Java 1.6. >> >> It didn't repeat when I mvn test'd a second time. > > Seems to fail sporadically :-/ > >> I then ran 'ant test' and got: >> >> BUILD FAILED >> /Users/hen/Keep/OSS/apache/commons-proper/tmp/commons-io-2.1- > src/build.xml:184: >> Test org.apache.commons.io.input.ReaderInputStreamTest failed >> >> >> Contents of report: >> >> Testcase: warning took 0.003 sec >> FAILED >> No tests found in org.apache.commons.io.input.ReaderInputStreamTest >> junit.framework.AssertionFailedError: No tests found in >> org.apache.commons.io.input.ReaderInputStreamTest >> >> >> Then I removed the target/ and reran mvn test. It worked again. >> >> So: >> >> a) Looks like the previous unit test failure is intermittent. >> b) Ant test seems to have problems. > > junit versions ... ?!?
download-junit has this gem: src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"/> Also, Ant complains "warning: 'includeantruntime' was not set ..." > - Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org