TEST: assert we can create an instance of request
This commit is contained in:
parent
8dbb79c96a
commit
209b8cf952
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue