- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { super.registerInterceptors(registry); }
@Before public void beforeForComputeBase() throws Throwable { host.addPrivilegedService(ContainerHostDataCollectionService.class); startServices(host); waitForInitialBootServiceToBeSelfStopped(ComputeInitialBootService.SELF_LINK); }
protected void startInitialBootService( Class<? extends AbstractInitialBootService> serviceClass, String bootServiceSelfLink) throws Throwable { // simulate a restart of the service host host.startServiceAndWait(serviceClass, bootServiceSelfLink); TestContext ctx = testCreate(1); // start initialization of system documents host.sendRequest(Operation.createPost( UriUtils.buildUri(host, serviceClass)) .setReferer(host.getUri()) .setBody(new ServiceDocument()) .setCompletion(ctx.getCompletion())); ctx.await(); } }
@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { super.registerInterceptors(registry); ProjectInterceptor.register(registry); }