jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cki...@apache.org
Subject svn commit: r610719 - in /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene: ./ hits/ hits/ArrayHitsTest.java
Date Thu, 10 Jan 2008 08:40:43 GMT
Author: ckiehl
Date: Thu Jan 10 00:40:42 2008
New Revision: 610719

URL: http://svn.apache.org/viewvc?rev=610719&view=rev
Log:
JCR-1302: Added test case.

Added:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/ArrayHitsTest.java

Added: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/ArrayHitsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/ArrayHitsTest.java?rev=610719&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/ArrayHitsTest.java
(added)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/hits/ArrayHitsTest.java
Thu Jan 10 00:40:42 2008
@@ -0,0 +1,14 @@
+package org.apache.jackrabbit.core.query.lucene.hits;
+
+import junit.framework.TestCase;
+
+public class ArrayHitsTest extends TestCase {
+
+    public void testSkipToDocumentNumberGreaterThanLastMatch() throws Exception {
+        ArrayHits hits = new ArrayHits();
+        hits.set(1);
+        int doc = hits.skipTo(2);
+        assertEquals(-1, doc);
+    }
+    
+}



Mime
View raw message