diff --git a/.gitignore b/.gitignore
index dcd5458de9203..a1596ca81e8e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/.project
/.settings
/.classpath
+/.local-execution-hints.log
diff --git a/pom.xml b/pom.xml
index 571ea587e4e5f..fe75045b05257 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,11 @@
0.90.8
4.6.0
+ 1
+ true
+ onerror
+
+ INFO
@@ -43,6 +48,19 @@
+
+ org.hamcrest
+ hamcrest-all
+ 1.3
+ test
+
+
+ org.apache.lucene
+ lucene-test-framework
+ ${lucene.version}
+ test
+
+
org.elasticsearch
elasticsearch
@@ -65,23 +83,10 @@
- org.testng
- testng
- 6.3.1
- test
-
-
-
- org.hamcrest
- hamcrest-core
- 1.3.RC2
- test
-
-
-
- org.hamcrest
- hamcrest-library
- 1.3.RC2
+ org.elasticsearch
+ elasticsearch
+ ${elasticsearch.version}
+ test-jar
test
@@ -98,15 +103,89 @@
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.11
-
-
- **/*Tests.java
-
-
+ com.carrotsearch.randomizedtesting
+ junit4-maven-plugin
+ 2.0.12
+
+
+ tests
+ test
+
+ junit4
+
+
+ 20
+ pipe,warn
+ true
+
+
+
+
+
+
+
+
+ ${tests.jvms}
+
+
+
+
+
+
+ **/*Tests.class
+ **/*Test.class
+
+
+ **/Abstract*.class
+ **/*StressTest.class
+
+
+ -Xmx512m
+ -XX:MaxDirectMemorySize=512m
+ -Des.logger.prefix=
+
+ ${tests.shuffle}
+ ${tests.verbose}
+ ${tests.seed}
+ ${tests.failfast}
+
+
+ ${tests.iters}
+ ${tests.maxfailures}
+ ${tests.failfast}
+ ${tests.class}
+ ${tests.method}
+ ${tests.nightly}
+ ${tests.badapples}
+ ${tests.weekly}
+ ${tests.slow}
+ ${tests.awaitsfix}
+ ${tests.slow}
+ ${tests.timeoutSuite}
+ ${tests.showSuccess}
+ ${tests.integration}
+ ${tests.cluster_seed}
+ ${tests.client.ratio}
+ ${env.ES_TEST_LOCAL}
+ ${es.node.mode}
+ ${es.logger.level}
+ true
+
+
+
+
+
org.apache.maven.plugins
maven-source-plugin
diff --git a/src/test/java/org/elasticsearch/index/analysis/SimpleSmartChineseAnalysisTests.java b/src/test/java/org/elasticsearch/index/analysis/SimpleSmartChineseAnalysisTests.java
index 32624dc47809a..14eeee35389ec 100644
--- a/src/test/java/org/elasticsearch/index/analysis/SimpleSmartChineseAnalysisTests.java
+++ b/src/test/java/org/elasticsearch/index/analysis/SimpleSmartChineseAnalysisTests.java
@@ -29,15 +29,16 @@
import org.elasticsearch.index.settings.IndexSettingsModule;
import org.elasticsearch.indices.analysis.IndicesAnalysisModule;
import org.elasticsearch.indices.analysis.IndicesAnalysisService;
+import org.elasticsearch.test.ElasticsearchTestCase;
import org.hamcrest.MatcherAssert;
-import org.testng.annotations.Test;
+import org.junit.Test;
import static org.elasticsearch.common.settings.ImmutableSettings.Builder.EMPTY_SETTINGS;
import static org.hamcrest.Matchers.instanceOf;
/**
*/
-public class SimpleSmartChineseAnalysisTests {
+public class SimpleSmartChineseAnalysisTests extends ElasticsearchTestCase {
@Test
public void testDefaultsIcuAnalysis() {