File tree 3 files changed +28
-27
lines changed
src/test/java/org/elasticsearch/index/analysis
3 files changed +28
-27
lines changed Original file line number Diff line number Diff line change 33
33
<properties >
34
34
<elasticsearch .version>0.90.8</elasticsearch .version>
35
35
<lucene .version>4.6.0</lucene .version>
36
+ <tests .jvms>1</tests .jvms>
37
+ <tests .shuffle>true</tests .shuffle>
38
+ <tests .output>onerror</tests .output>
39
+ <tests .client.ratio></tests .client.ratio>
40
+ <es .logger.level>INFO</es .logger.level>
36
41
</properties >
37
42
38
43
<repositories >
43
48
</repositories >
44
49
45
50
<dependencies >
51
+ <dependency >
52
+ <groupId >org.hamcrest</groupId >
53
+ <artifactId >hamcrest-all</artifactId >
54
+ <version >1.3</version >
55
+ <scope >test</scope >
56
+ </dependency >
57
+ <dependency >
58
+ <groupId >org.apache.lucene</groupId >
59
+ <artifactId >lucene-test-framework</artifactId >
60
+ <version >${lucene.version} </version >
61
+ <scope >test</scope >
62
+ </dependency >
63
+
46
64
<dependency >
47
65
<groupId >org.elasticsearch</groupId >
48
66
<artifactId >elasticsearch</artifactId >
65
83
</dependency >
66
84
67
85
<dependency >
68
- <groupId >org.testng</groupId >
69
- <artifactId >testng</artifactId >
70
- <version >6.8</version >
71
- <scope >test</scope >
72
- <exclusions >
73
- <exclusion >
74
- <groupId >org.hamcrest</groupId >
75
- <artifactId >hamcrest-core</artifactId >
76
- </exclusion >
77
- <exclusion >
78
- <groupId >junit</groupId >
79
- <artifactId >junit</artifactId >
80
- </exclusion >
81
- </exclusions >
82
- </dependency >
83
-
84
- <dependency >
85
- <groupId >org.hamcrest</groupId >
86
- <artifactId >hamcrest-all</artifactId >
87
- <version >1.3</version >
86
+ <groupId >org.elasticsearch</groupId >
87
+ <artifactId >elasticsearch</artifactId >
88
+ <version >${elasticsearch.version} </version >
89
+ <type >test-jar</type >
88
90
<scope >test</scope >
89
91
</dependency >
90
92
Original file line number Diff line number Diff line change 29
29
import org .elasticsearch .index .settings .IndexSettingsModule ;
30
30
import org .elasticsearch .indices .analysis .IndicesAnalysisModule ;
31
31
import org .elasticsearch .indices .analysis .IndicesAnalysisService ;
32
- import org .testng .annotations .Test ;
32
+ import org .elasticsearch .test .ElasticsearchTestCase ;
33
+ import org .junit .Test ;
33
34
34
35
import static org .elasticsearch .common .settings .ImmutableSettings .Builder .EMPTY_SETTINGS ;
35
- import static org .hamcrest .MatcherAssert .assertThat ;
36
36
import static org .hamcrest .Matchers .instanceOf ;
37
-
38
37
/**
39
38
*/
40
- public class SimpleIcuAnalysisTests {
39
+ public class SimpleIcuAnalysisTests extends ElasticsearchTestCase {
41
40
42
41
@ Test
43
42
public void testDefaultsIcuAnalysis () {
Original file line number Diff line number Diff line change 18
18
import org .elasticsearch .index .settings .IndexSettingsModule ;
19
19
import org .elasticsearch .indices .analysis .IndicesAnalysisModule ;
20
20
import org .elasticsearch .indices .analysis .IndicesAnalysisService ;
21
- import org .testng .annotations .Test ;
21
+ import org .elasticsearch .test .ElasticsearchTestCase ;
22
+ import org .junit .Test ;
22
23
23
24
import java .io .IOException ;
24
25
import java .io .StringReader ;
25
26
26
- import static org .hamcrest .MatcherAssert .assertThat ;
27
27
import static org .hamcrest .Matchers .equalTo ;
28
28
29
29
// Tests borrowed from Solr's Icu collation key filter factory test.
30
- public class SimpleIcuCollationTokenFilterTests {
30
+ public class SimpleIcuCollationTokenFilterTests extends ElasticsearchTestCase {
31
31
32
32
/*
33
33
* Turkish has some funny casing.
You can’t perform that action at this time.
0 commit comments