@Test public void testGetValueFromBooleanMethod() { assertEquals(false, contextManager.getContext(ContextMap.GLOBAL).get("booleanValue")); }
public Map<String, Object> getContext(final String contextName) { if (ContextMap.GLOBAL.equals(contextName)) { return new ContextMap(contextList); } else { final ContextDescriptor descriptor = contexts.get(contextName); if (descriptor == null) { throw new UnknownContextException(String.format("Cannot find context with name [%s].", contextName)); } return new ContextMap(Collections.singletonList(descriptor)); } }
ContextManager { public Map<String, Object> getContext(final String contextName) { if (ContextMap.GLOBAL.equals(contextName)) { return new ContextMap(contextList); } else { final ContextDescriptor descriptor = contexts.get(contextName); if (descriptor == null) { throw new UnknownContextException(String.format("Cannot find context with name [%s].", contextName)); } return new ContextMap(Collections.singletonList(descriptor)); } } }
ContextManager { public Map<String, Object> getContext(final String contextName) { if (ContextMap.GLOBAL.equals(contextName)) { return new ContextMap(contextList); } else { final ContextDescriptor descriptor = contexts.get(contextName); if (descriptor == null) { throw new UnknownContextException(String.format("Cannot find context with name [%s].", contextName)); } return new ContextMap(Collections.singletonList(descriptor)); } } ContextManager(final Environment environment); }
ContextManager { public Map<String, Object> getContext(final String contextName) { if (ContextMap.GLOBAL.equals(contextName)) { return new ContextMap(contextList); } else { final ContextDescriptor descriptor = contexts.get(contextName); if (descriptor == null) { throw new UnknownContextException(String.format("Cannot find context with name [%s].", contextName)); } return new ContextMap(Collections.singletonList(descriptor)); } } ContextManager(final Environment environment); Map<String, Object> getContext(final String contextName); }
ContextManager { public Map<String, Object> getContext(final String contextName) { if (ContextMap.GLOBAL.equals(contextName)) { return new ContextMap(contextList); } else { final ContextDescriptor descriptor = contexts.get(contextName); if (descriptor == null) { throw new UnknownContextException(String.format("Cannot find context with name [%s].", contextName)); } return new ContextMap(Collections.singletonList(descriptor)); } } ContextManager(final Environment environment); Map<String, Object> getContext(final String contextName);  }