File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
suggester/src/test/java/org/opengrok/suggest Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 49
49
import java .util .Map .Entry ;
50
50
import java .util .stream .Collectors ;
51
51
52
- import static junit .framework .Assert .assertTrue ;
53
52
import static junit .framework .TestCase .assertEquals ;
54
53
import static junit .framework .TestCase .assertFalse ;
55
54
import static org .hamcrest .MatcherAssert .assertThat ;
56
55
import static org .hamcrest .collection .IsIterableContainingInAnyOrder .containsInAnyOrder ;
57
56
import static org .hamcrest .collection .IsIterableContainingInOrder .contains ;
57
+ import static org .junit .Assert .assertTrue ;
58
58
59
59
public class SuggesterProjectDataTest {
60
60
@@ -67,6 +67,7 @@ public class SuggesterProjectDataTest {
67
67
private SuggesterProjectData data ;
68
68
69
69
@ Before
70
+ @ SuppressWarnings ("deprecation" ) // for RAMDirectory
70
71
public void setUp () throws IOException {
71
72
dir = new RAMDirectory ();
72
73
tempDir = Files .createTempDirectory ("test" );
@@ -262,6 +263,7 @@ public void getSearchCountMapNullTest() throws IOException {
262
263
}
263
264
264
265
@ Test
266
+ @ SuppressWarnings ("deprecation" ) // for RAMDirectory
265
267
public void testRemove () throws IOException {
266
268
Directory dir = new RAMDirectory ();
267
269
Path tempDir = Files .createTempDirectory ("test" );
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public class SuggesterSearcherTest {
59
59
private static SuggesterSearcher searcher ;
60
60
61
61
@ BeforeClass
62
+ @ SuppressWarnings ("deprecation" ) // for RAMDirectory
62
63
public static void setUpClass () throws IOException {
63
64
dir = new RAMDirectory ();
64
65
Original file line number Diff line number Diff line change 49
49
50
50
public class CustomSloppyPhraseScorerTest {
51
51
52
+ @ SuppressWarnings ("deprecation" ) // for RAMDirectory
52
53
public static void test (
53
54
final int slop ,
54
55
final int offset ,
You can’t perform that action at this time.
0 commit comments