TEST: assert we can create an instance of request

This commit is contained in:
Shay Banon 2015-04-24 15:04:25 +02:00
parent 8dbb79c96a
commit 209b8cf952
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class RequestHandlerRegistry<Request extends TransportRequest> {
throw new ElasticsearchIllegalStateException("failed to create constructor (does it have a default constructor?) for request " + request, e);
}
this.requestConstructor.setAccessible(true);
assert newRequest() != null;
this.handler = handler;
this.forceExecution = forceExecution;
this.executor = executor;