On Mon, Aug 18, 2008 at 3:31 PM, Florent Daigni?re
<nextgens at freenetproject.org> wrote:
> * Daniel Cheng <j16sdiz+freenet at gmail.com> [2008-08-18 09:27:59]:
>
>> On Mon, Aug 18, 2008 at 2:24 AM, <nextgens at freenetproject.org> wrote:
>> > Author: nextgens
>> > Date: 2008-08-17 18:24:10 +0000 (Sun, 17 Aug 2008)
>> > New Revision: 21976
>> >
>> > Added:
>> > trunk/freenet/src/freenet/support/io/MockInputStream.java
>>
>> Why extract it as top-level class?
>>
>> MockInputStream is used only in the test cases..
>> Put it under trunk/freenet/test
>>
>
> When I do so it does the following:
>
> [junit] Running freenet.support.io.MockInputStream
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,004 sec
> [junit] Testsuite: freenet.support.io.MockInputStream
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,004 sec
> [junit]
> [junit] Testcase: warning took 0,002 sec
> [junit] FAILED
> [junit] No tests found in freenet.support.io.MockInputStream
> [junit] junit.framework.AssertionFailedError: No tests found in
> freenet.support.io.MockInputStream
> [junit]
> [junit] Test freenet.support.io.MockInputStream FAILED
>
> How to get rid of the warning short of implementing a mock test for it?
>
Just exclude the file:
--- a/build.xml
+++ b/build.xml
@@ -152,7 +152,7 @@
<batchtest fork="yes">
<fileset dir="${build-test}">
- <include name="**/*.class"/>
+ <include name="**/*Test.class"/>
</fileset>
</batchtest>
<sysproperty key="benchmark" value="${benchmark}" />
> NextGen$
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkipJVsACgkQU/Z/dHFfxtfdRwCgy4CiczO36UMYDA6QGIUIij3e
> +E0AnRn6aw3DVS7xcUGg38/Egsaid3Kc
> =UwQD
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
>