File tree Expand file tree Collapse file tree 4 files changed +0
-18
lines changed
src/test/java/org/elasticsearch/client Expand file tree Collapse file tree 4 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 2020import org.elasticsearch.gradle.precommit.PrecommitTasks
2121
2222apply plugin : ' elasticsearch.build'
23- apply plugin : ' ru.vyarus.animalsniffer'
2423apply plugin : ' nebula.maven-base-publish'
2524apply plugin : ' nebula.maven-scm'
2625
@@ -52,8 +51,6 @@ dependencies {
5251 testCompile " org.hamcrest:hamcrest-all:${ versions.hamcrest} "
5352 testCompile " org.elasticsearch:securemock:${ versions.securemock} "
5453 testCompile " org.elasticsearch:mocksocket:${ versions.mocksocket} "
55- testCompile " org.codehaus.mojo:animal-sniffer-annotations:1.15"
56- signature " org.codehaus.mojo.signature:java17:1.0@signature"
5754}
5855
5956forbiddenApisMain {
Original file line number Diff line number Diff line change 2424import com .sun .net .httpserver .HttpsConfigurator ;
2525import com .sun .net .httpserver .HttpsServer ;
2626import org .apache .http .HttpHost ;
27- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
2827import org .elasticsearch .mocksocket .MockHttpServer ;
2928import org .junit .AfterClass ;
3029import org .junit .BeforeClass ;
4645/**
4746 * Integration test to validate the builder builds a client with the correct configuration
4847 */
49- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
50- @ IgnoreJRERequirement
5148public class RestClientBuilderIntegTests extends RestClientTestCase {
5249
5350 private static HttpsServer httpsServer ;
@@ -60,8 +57,6 @@ public static void startHttpServer() throws Exception {
6057 httpsServer .start ();
6158 }
6259
63- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
64- @ IgnoreJRERequirement
6560 private static class ResponseHandler implements HttpHandler {
6661 @ Override
6762 public void handle (HttpExchange httpExchange ) throws IOException {
Original file line number Diff line number Diff line change 2323import com .sun .net .httpserver .HttpHandler ;
2424import com .sun .net .httpserver .HttpServer ;
2525import org .apache .http .HttpHost ;
26- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
2726import org .elasticsearch .mocksocket .MockHttpServer ;
2827import org .junit .AfterClass ;
2928import org .junit .Before ;
4847 * Integration test to check interaction between {@link RestClient} and {@link org.apache.http.client.HttpClient}.
4948 * Works against real http servers, multiple hosts. Also tests failover by randomly shutting down hosts.
5049 */
51- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
52- @ IgnoreJRERequirement
5350public class RestClientMultipleHostsIntegTests extends RestClientTestCase {
5451
5552 private static HttpServer [] httpServers ;
@@ -90,8 +87,6 @@ private static HttpServer createHttpServer() throws Exception {
9087 return httpServer ;
9188 }
9289
93- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
94- @ IgnoreJRERequirement
9590 private static class ResponseHandler implements HttpHandler {
9691 private final int statusCode ;
9792
Original file line number Diff line number Diff line change 3333import org .apache .http .impl .client .BasicCredentialsProvider ;
3434import org .apache .http .impl .nio .client .HttpAsyncClientBuilder ;
3535import org .apache .http .util .EntityUtils ;
36- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
3736import org .elasticsearch .mocksocket .MockHttpServer ;
3837import org .junit .AfterClass ;
3938import org .junit .BeforeClass ;
6463 * Integration test to check interaction between {@link RestClient} and {@link org.apache.http.client.HttpClient}.
6564 * Works against a real http server, one single host.
6665 */
67- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
68- @ IgnoreJRERequirement
6966public class RestClientSingleHostIntegTests extends RestClientTestCase {
7067
7168 private static HttpServer httpServer ;
@@ -91,8 +88,6 @@ private static HttpServer createHttpServer() throws Exception {
9188 return httpServer ;
9289 }
9390
94- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
95- @ IgnoreJRERequirement
9691 private static class ResponseHandler implements HttpHandler {
9792 private final int statusCode ;
9893
You can’t perform that action at this time.
0 commit comments