You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/01/24 21:55:41 UTC
svn commit: r1438188 [2/2] - in /lucene/dev/trunk/lucene/facet/src:
examples/org/apache/lucene/facet/example/merge/
java/org/apache/lucene/facet/index/params/
java/org/apache/lucene/util/encoding/ test/org/apache/lucene/facet/
test/org/apache/lucene/fa...
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntHashSetTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntHashSetTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntHashSetTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntHashSetTest.java Thu Jan 24 20:55:40 2013
@@ -2,11 +2,9 @@ package org.apache.lucene.util.collectio
import java.util.HashSet;
+import org.apache.lucene.facet.FacetTestCase;
import org.junit.Test;
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.IntHashSet;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -24,7 +22,7 @@ import org.apache.lucene.util.collection
* limitations under the License.
*/
-public class IntHashSetTest extends LuceneTestCase {
+public class IntHashSetTest extends FacetTestCase {
@Test
public void test0() {
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToDoubleMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToDoubleMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToDoubleMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToDoubleMapTest.java Thu Jan 24 20:55:40 2013
@@ -1,15 +1,11 @@
package org.apache.lucene.util.collections;
-import org.junit.Test;
-
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.DoubleIterator;
-import org.apache.lucene.util.collections.IntIterator;
-import org.apache.lucene.util.collections.IntToDoubleMap;
-
import java.util.HashSet;
import java.util.Random;
+import org.apache.lucene.facet.FacetTestCase;
+import org.junit.Test;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,7 +23,8 @@ import java.util.Random;
* limitations under the License.
*/
-public class IntToDoubleMapTest extends LuceneTestCase {
+public class IntToDoubleMapTest extends FacetTestCase {
+
private static void assertGround(double value) {
assertEquals(IntToDoubleMap.GROUND, value, Double.MAX_VALUE);
}
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToFloatMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToFloatMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToFloatMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToFloatMapTest.java Thu Jan 24 20:55:40 2013
@@ -1,15 +1,11 @@
package org.apache.lucene.util.collections;
-import org.junit.Test;
-
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.FloatIterator;
-import org.apache.lucene.util.collections.IntIterator;
-import org.apache.lucene.util.collections.IntToFloatMap;
-
import java.util.HashSet;
import java.util.Random;
+import org.apache.lucene.facet.FacetTestCase;
+import org.junit.Test;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,7 +23,8 @@ import java.util.Random;
* limitations under the License.
*/
-public class IntToFloatMapTest extends LuceneTestCase {
+public class IntToFloatMapTest extends FacetTestCase {
+
private static void assertGround(float value) {
assertEquals(IntToFloatMap.GROUND, value, Float.MAX_VALUE);
}
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToIntMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToIntMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToIntMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToIntMapTest.java Thu Jan 24 20:55:40 2013
@@ -1,12 +1,10 @@
package org.apache.lucene.util.collections;
-import org.junit.Test;
import java.util.HashSet;
import java.util.Random;
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.IntIterator;
-import org.apache.lucene.util.collections.IntToIntMap;
+import org.apache.lucene.facet.FacetTestCase;
+import org.junit.Test;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -25,7 +23,7 @@ import org.apache.lucene.util.collection
* limitations under the License.
*/
-public class IntToIntMapTest extends LuceneTestCase {
+public class IntToIntMapTest extends FacetTestCase {
private static void assertGround(int value) {
assertEquals(IntToIntMap.GROUD, value);
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToObjectMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToObjectMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToObjectMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/IntToObjectMapTest.java Thu Jan 24 20:55:40 2013
@@ -4,12 +4,9 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
+import org.apache.lucene.facet.FacetTestCase;
import org.junit.Test;
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.IntIterator;
-import org.apache.lucene.util.collections.IntToObjectMap;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,7 +24,7 @@ import org.apache.lucene.util.collection
* limitations under the License.
*/
-public class IntToObjectMapTest extends LuceneTestCase {
+public class IntToObjectMapTest extends FacetTestCase {
@Test
public void test0() {
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToFloatMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToFloatMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToFloatMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToFloatMapTest.java Thu Jan 24 20:55:40 2013
@@ -1,15 +1,12 @@
package org.apache.lucene.util.collections;
-import org.junit.Test;
-
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.FloatIterator;
-import org.apache.lucene.util.collections.ObjectToFloatMap;
-
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
+import org.apache.lucene.facet.FacetTestCase;
+import org.junit.Test;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,7 +24,7 @@ import java.util.Random;
* limitations under the License.
*/
-public class ObjectToFloatMapTest extends LuceneTestCase {
+public class ObjectToFloatMapTest extends FacetTestCase {
@Test
public void test0() {
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToIntMapTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToIntMapTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToIntMapTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/ObjectToIntMapTest.java Thu Jan 24 20:55:40 2013
@@ -6,6 +6,7 @@ import java.util.Random;
import org.junit.Test;
+import org.apache.lucene.facet.FacetTestCase;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.collections.IntIterator;
import org.apache.lucene.util.collections.ObjectToIntMap;
@@ -27,7 +28,7 @@ import org.apache.lucene.util.collection
* limitations under the License.
*/
-public class ObjectToIntMapTest extends LuceneTestCase {
+public class ObjectToIntMapTest extends FacetTestCase {
@Test
public void test0() {
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/TestLRUHashMap.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/TestLRUHashMap.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/TestLRUHashMap.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/collections/TestLRUHashMap.java Thu Jan 24 20:55:40 2013
@@ -1,10 +1,8 @@
package org.apache.lucene.util.collections;
+import org.apache.lucene.facet.FacetTestCase;
import org.junit.Test;
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.lucene.util.collections.LRUHashMap;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -22,7 +20,7 @@ import org.apache.lucene.util.collection
* limitations under the License.
*/
-public class TestLRUHashMap extends LuceneTestCase {
+public class TestLRUHashMap extends FacetTestCase {
// testLRU() tests that the specified size limit is indeed honored, and
// the remaining objects in the map are indeed those that have been most
// recently used
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingTest.java?rev=1438188&r1=1438187&r2=1438188&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingTest.java Thu Jan 24 20:55:40 2013
@@ -3,9 +3,9 @@ package org.apache.lucene.util.encoding;
import java.io.IOException;
import java.util.Arrays;
+import org.apache.lucene.facet.FacetTestCase;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.IntsRef;
-import org.apache.lucene.util.LuceneTestCase;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -26,7 +26,7 @@ import org.junit.Test;
* limitations under the License.
*/
-public class EncodingTest extends LuceneTestCase {
+public class EncodingTest extends FacetTestCase {
private static IntsRef uniqueSortedData, data;