[TEST] add comment on using animal-sniffer suppress annotation

This commit is contained in:
javanna 2016-06-13 12:02:09 +02:00 committed by Luca Cavanna
parent 50b6f4c02f
commit 3cd201e67e
2 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,7 @@ import java.util.Set;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
//animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
@IgnoreJRERequirement
public class HostsSnifferTests extends LuceneTestCase {
@ -118,6 +119,7 @@ public class HostsSnifferTests extends LuceneTestCase {
return httpServer;
}
//animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
@IgnoreJRERequirement
private static class ResponseHandler implements HttpHandler {
private final int sniffTimeoutMillis;

View File

@ -58,6 +58,7 @@ import static org.hamcrest.CoreMatchers.equalTo;
* Integration test to check interaction between {@link RestClient} and {@link org.apache.http.client.HttpClient}.
* Works against a real http server, one single host.
*/
//animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
@IgnoreJRERequirement
public class RestClientIntegTests extends LuceneTestCase {
@ -88,6 +89,7 @@ public class RestClientIntegTests extends LuceneTestCase {
httpServer.createContext("/" + statusCode, new ResponseHandler(statusCode));
}
//animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
@IgnoreJRERequirement
private static class ResponseHandler implements HttpHandler {
private final int statusCode;