@Test public void testContextExtensionDirectMatch() { ContextExtension extension = new ContextExtension(); JsonBean bean = new JsonBean(); extension.put(bean); AntennaContext context = createContext(new AntennaContext.ContextBuilder().setContextExtensions(extension)); assertThat(context.getGeneric(JsonBean.class)).contains(bean); }
public <T> Optional<T> getGeneric(Class<? extends T> clazz){ return this.contextExtension.get(clazz); }
AntennaContext { public <T> Optional<T> getGeneric(Class<? extends T> clazz){ return this.contextExtension.get(clazz); } }
AntennaContext { public <T> Optional<T> getGeneric(Class<? extends T> clazz){ return this.contextExtension.get(clazz); } private  AntennaContext(ContextBuilder builder); }
AntennaContext { public <T> Optional<T> getGeneric(Class<? extends T> clazz){ return this.contextExtension.get(clazz); } private  AntennaContext(ContextBuilder builder); Configuration getConfiguration(); ToolConfiguration getToolConfiguration(); IProject getProject(); IProcessingReporter getProcessingReporter(); Optional<T> getGeneric(Class<? extends T> clazz); void setDebug(boolean debug); boolean getDebug(); HttpClient getHttpClient(); ObjectMapper getObjectMapper(); }
AntennaContext { public <T> Optional<T> getGeneric(Class<? extends T> clazz){ return this.contextExtension.get(clazz); } private  AntennaContext(ContextBuilder builder); Configuration getConfiguration(); ToolConfiguration getToolConfiguration(); IProject getProject(); IProcessingReporter getProcessingReporter(); Optional<T> getGeneric(Class<? extends T> clazz); void setDebug(boolean debug); boolean getDebug(); HttpClient getHttpClient(); ObjectMapper getObjectMapper();  }