* Daniel Cheng <j16sdiz+freenet at gmail.com> [2008-08-18 17:55:59]:

> 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}" />
> 

Done in r21995
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080818/185b1262/attachment.pgp>

Reply via email to