Skip to content

Commit da15a3a

Browse files
author
Vladimir Kotal
committed
more RAMDirectory
1 parent 40e5cc1 commit da15a3a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

suggester/src/test/java/org/opengrok/suggest/SuggesterProjectDataTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
import java.util.Map.Entry;
5050
import java.util.stream.Collectors;
5151

52-
import static junit.framework.Assert.assertTrue;
5352
import static junit.framework.TestCase.assertEquals;
5453
import static junit.framework.TestCase.assertFalse;
5554
import static org.hamcrest.MatcherAssert.assertThat;
5655
import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder;
5756
import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
57+
import static org.junit.Assert.assertTrue;
5858

5959
public class SuggesterProjectDataTest {
6060

@@ -67,6 +67,7 @@ public class SuggesterProjectDataTest {
6767
private SuggesterProjectData data;
6868

6969
@Before
70+
@SuppressWarnings("deprecation") // for RAMDirectory
7071
public void setUp() throws IOException {
7172
dir = new RAMDirectory();
7273
tempDir = Files.createTempDirectory("test");
@@ -262,6 +263,7 @@ public void getSearchCountMapNullTest() throws IOException {
262263
}
263264

264265
@Test
266+
@SuppressWarnings("deprecation") // for RAMDirectory
265267
public void testRemove() throws IOException {
266268
Directory dir = new RAMDirectory();
267269
Path tempDir = Files.createTempDirectory("test");

suggester/src/test/java/org/opengrok/suggest/SuggesterSearcherTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class SuggesterSearcherTest {
5959
private static SuggesterSearcher searcher;
6060

6161
@BeforeClass
62+
@SuppressWarnings("deprecation") // for RAMDirectory
6263
public static void setUpClass() throws IOException {
6364
dir = new RAMDirectory();
6465

suggester/src/test/java/org/opengrok/suggest/query/customized/CustomSloppyPhraseScorerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
public class CustomSloppyPhraseScorerTest {
5151

52+
@SuppressWarnings("deprecation") // for RAMDirectory
5253
public static void test(
5354
final int slop,
5455
final int offset,

0 commit comments

Comments
 (0)