[Focusing on the Java/test portion of this thread.]
On Wed, 11 Oct 2006, Paul Burba wrote:
> Daniel Rall <email@example.com> wrote on 10/06/2006 03:49:32 PM:
> I added a second status test to
> it's included in the attached patch. It replicates what my
> temporary test did, but actually *tests* the expected results rather
> than relying on a manual check.
Status.getReposLastCmtKind() seems to be redundant with getReposKind()
(they are both accessors for the same Status.reposKind instance
field), which has existed since 1.3. The method not used by your
patch, so I think we can dump it.
testOODStatus() starts off by performing an "obstructed
checkout"-oriented check, which appears to have been copied from
testBasicCheckout(). This isn't appropriate for testOODStatus(), so
we can dump it. The method's "throws" clause follows the poor pattern
used throughout this class TestCase by declaring "Throwable". We can
narrow this down to "SubversionException, IOException". The method
also contains some block comments with "*" formatting on every line,
which can be switched to line comments.
I made a bunch of other formatting tweaks and JavaDoc improvements,
and have committed this code in an XFAIL-style in r21908.
> > > P.S. In testing this patch I used the following hack to make the debug
> > > version of svn status show all the OOD info on the command line. It
> > > also adds a temporary status test to setup various out of date scenarios.
> > > It may prove useful to anyone who tries out this patch:
> > This status test won't be permanent, then? Do we have any OOD info
> > tests?
> No, because it relies on the hack I made to the debug version of svn
> status, so it isn't really usefil. The JavaHL test will replace it (see
Some of the Python status tests do check for "*", but don't test the
individual pieces of "out of date" information retrieved from
Received on Thu Oct 12 23:39:15 2006
- application/pgp-signature attachment: stored