File tree 4 files changed +0
-18
lines changed
src/test/java/org/elasticsearch/client
4 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 20
20
import org.elasticsearch.gradle.precommit.PrecommitTasks
21
21
22
22
apply plugin : ' elasticsearch.build'
23
- apply plugin : ' ru.vyarus.animalsniffer'
24
23
apply plugin : ' nebula.maven-base-publish'
25
24
apply plugin : ' nebula.maven-scm'
26
25
@@ -52,8 +51,6 @@ dependencies {
52
51
testCompile " org.hamcrest:hamcrest-all:${ versions.hamcrest} "
53
52
testCompile " org.elasticsearch:securemock:${ versions.securemock} "
54
53
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"
57
54
}
58
55
59
56
forbiddenApisMain {
Original file line number Diff line number Diff line change 24
24
import com .sun .net .httpserver .HttpsConfigurator ;
25
25
import com .sun .net .httpserver .HttpsServer ;
26
26
import org .apache .http .HttpHost ;
27
- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
28
27
import org .elasticsearch .mocksocket .MockHttpServer ;
29
28
import org .junit .AfterClass ;
30
29
import org .junit .BeforeClass ;
46
45
/**
47
46
* Integration test to validate the builder builds a client with the correct configuration
48
47
*/
49
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
50
- @ IgnoreJRERequirement
51
48
public class RestClientBuilderIntegTests extends RestClientTestCase {
52
49
53
50
private static HttpsServer httpsServer ;
@@ -60,8 +57,6 @@ public static void startHttpServer() throws Exception {
60
57
httpsServer .start ();
61
58
}
62
59
63
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
64
- @ IgnoreJRERequirement
65
60
private static class ResponseHandler implements HttpHandler {
66
61
@ Override
67
62
public void handle (HttpExchange httpExchange ) throws IOException {
Original file line number Diff line number Diff line change 23
23
import com .sun .net .httpserver .HttpHandler ;
24
24
import com .sun .net .httpserver .HttpServer ;
25
25
import org .apache .http .HttpHost ;
26
- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
27
26
import org .elasticsearch .mocksocket .MockHttpServer ;
28
27
import org .junit .AfterClass ;
29
28
import org .junit .Before ;
48
47
* Integration test to check interaction between {@link RestClient} and {@link org.apache.http.client.HttpClient}.
49
48
* Works against real http servers, multiple hosts. Also tests failover by randomly shutting down hosts.
50
49
*/
51
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
52
- @ IgnoreJRERequirement
53
50
public class RestClientMultipleHostsIntegTests extends RestClientTestCase {
54
51
55
52
private static HttpServer [] httpServers ;
@@ -90,8 +87,6 @@ private static HttpServer createHttpServer() throws Exception {
90
87
return httpServer ;
91
88
}
92
89
93
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
94
- @ IgnoreJRERequirement
95
90
private static class ResponseHandler implements HttpHandler {
96
91
private final int statusCode ;
97
92
Original file line number Diff line number Diff line change 33
33
import org .apache .http .impl .client .BasicCredentialsProvider ;
34
34
import org .apache .http .impl .nio .client .HttpAsyncClientBuilder ;
35
35
import org .apache .http .util .EntityUtils ;
36
- import org .codehaus .mojo .animal_sniffer .IgnoreJRERequirement ;
37
36
import org .elasticsearch .mocksocket .MockHttpServer ;
38
37
import org .junit .AfterClass ;
39
38
import org .junit .BeforeClass ;
64
63
* Integration test to check interaction between {@link RestClient} and {@link org.apache.http.client.HttpClient}.
65
64
* Works against a real http server, one single host.
66
65
*/
67
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
68
- @ IgnoreJRERequirement
69
66
public class RestClientSingleHostIntegTests extends RestClientTestCase {
70
67
71
68
private static HttpServer httpServer ;
@@ -91,8 +88,6 @@ private static HttpServer createHttpServer() throws Exception {
91
88
return httpServer ;
92
89
}
93
90
94
- //animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
95
- @ IgnoreJRERequirement
96
91
private static class ResponseHandler implements HttpHandler {
97
92
private final int statusCode ;
98
93
You can’t perform that action at this time.
0 commit comments