ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Bailliez" <sbaill...@imediation.com>
Subject Re: test cases failing
Date Tue, 25 Dec 2001 20:37:48 GMT
cvs problem>Testcase:
>testBackslash(org.apache.tools.ant.taskdefs.optional.perforce.P4Change
>Test):   Caused an ERROR
[...]
>... digging more, I see that the backslash method is protected, so the test
>case can't call it.  How did this ever work?  Or did it?  So I made

Yes it works. :-)
http://jakarta.apache.org/builds/gump/2001-12-24/test-ant.html

>backslash 'public static final' (since its really a helper method and
>doesn't need any member access), and now that test case passes.  I now get
>this:

A protected method can be called from subclasses or from classes belonging
to the same package.
This is much of the interest of having testcases in the same package of
tested classes.

>I'll go ahead and commit my 'backslash' change - and I'm sure someone will
>let me know if that change is inappropriate.

It is not inappropriate but it is not necessary. :)

Stephane



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message