@Test void givenEmptyContext_whenInfoStored_thenStoreInfo() { InstanceInfo info = InstanceInfo.Builder.newBuilder().setAppName("Vanessa").build(); assertThat(RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY), is(nullValue())); RequestContextUtils.setInstanceInfo(info); assertThat(RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY), is(info)); }
public static void setInstanceInfo(InstanceInfo info) { RequestContext.getCurrentContext().set(INSTANCE_INFO_KEY, info); }
RequestContextUtils { public static void setInstanceInfo(InstanceInfo info) { RequestContext.getCurrentContext().set(INSTANCE_INFO_KEY, info); } }
RequestContextUtils { public static void setInstanceInfo(InstanceInfo info) { RequestContext.getCurrentContext().set(INSTANCE_INFO_KEY, info); } private  RequestContextUtils(); }
RequestContextUtils { public static void setInstanceInfo(InstanceInfo info) { RequestContext.getCurrentContext().set(INSTANCE_INFO_KEY, info); } private  RequestContextUtils(); static Optional<InstanceInfo> getInstanceInfo(); static void setInstanceInfo(InstanceInfo info); static void addDebugInfo(String debug); static String getDebugInfo(); }
RequestContextUtils { public static void setInstanceInfo(InstanceInfo info) { RequestContext.getCurrentContext().set(INSTANCE_INFO_KEY, info); } private  RequestContextUtils(); static Optional<InstanceInfo> getInstanceInfo(); static void setInstanceInfo(InstanceInfo info); static void addDebugInfo(String debug); static String getDebugInfo(); static final String INSTANCE_INFO_KEY; static final String DEBUG_INFO_KEY; }