Add unit tests for AbstractRevQueue.EMPTY_QUEUE
commit5a2e1ef0741af79b8a481fd1d6fd57a825b2e385
authorShawn O. Pearce <spearce@spearce.org>
Wed, 18 Mar 2009 01:40:47 +0000 (17 18:40 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 19 Mar 2009 20:05:12 +0000 (19 21:05 +0100)
tree40242a04ea5ad530e4612cdccd7fdac82b7f7bd3
parent33e94ffc7b41c9b283b674b4d1e217a8e08da2bd
Add unit tests for AbstractRevQueue.EMPTY_QUEUE

Also fix anybodyHasFlag() to return false, as the queue is empty,
and thus nobody has that flag.  This matches the behavior of the
other queue types.

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/revwalk/AlwaysEmptyRevQueueTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/revwalk/AbstractRevQueue.java