JUnit test for FileTreeIterator, WorkingTreeIterator
commit77a158257cbb26146ecf96acc9111d6d523c0986
authorShawn O. Pearce <spearce@spearce.org>
Thu, 28 Aug 2008 15:27:44 +0000 (28 08:27 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 28 Aug 2008 22:01:59 +0000 (29 00:01 +0200)
treec250a0f1ab2da70ca6bfa86e22cfd0aa77503781
parent825e6c4a9f2703e5b600d07850d4db10762a119f
JUnit test for FileTreeIterator, WorkingTreeIterator

This test is an indirect test of WorkingTreeIterator as the class
is abstract.  An easy way to test it is through the FileTreeIterator
as that relies only on standard Java IO.

We don't have full coverage yet, but most of the cases are dealt
with by this test.  A better test of WorkingTreeIterator would be
to setup a mock implementation that works strictly in memory and
throws it all of the corner cases.  Building that is a lot more
work, and the test will be focusing more on the mock code than on
the live library, so I'm punting on it for now.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java [new file with mode: 0644]