@Test void givenRequestContext_whenNoInfo_thenRetrieveEmpty() { assertThat(RequestContextUtils.getInstanceInfo().isPresent(), is(false)); }
public static Optional<InstanceInfo> getInstanceInfo() { Object o = RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY); if (!(o instanceof InstanceInfo)) { return Optional.empty(); } else { return Optional.of((InstanceInfo) o); } }
RequestContextUtils { public static Optional<InstanceInfo> getInstanceInfo() { Object o = RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY); if (!(o instanceof InstanceInfo)) { return Optional.empty(); } else { return Optional.of((InstanceInfo) o); } } }
RequestContextUtils { public static Optional<InstanceInfo> getInstanceInfo() { Object o = RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY); if (!(o instanceof InstanceInfo)) { return Optional.empty(); } else { return Optional.of((InstanceInfo) o); } } private  RequestContextUtils(); }
RequestContextUtils { public static Optional<InstanceInfo> getInstanceInfo() { Object o = RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY); if (!(o instanceof InstanceInfo)) { return Optional.empty(); } else { return Optional.of((InstanceInfo) o); } } private  RequestContextUtils(); static Optional<InstanceInfo> getInstanceInfo(); static void setInstanceInfo(InstanceInfo info); static void addDebugInfo(String debug); static String getDebugInfo(); }
RequestContextUtils { public static Optional<InstanceInfo> getInstanceInfo() { Object o = RequestContext.getCurrentContext().get(INSTANCE_INFO_KEY); if (!(o instanceof InstanceInfo)) { return Optional.empty(); } else { return Optional.of((InstanceInfo) o); } } 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; }