@Test public void testGetPropertyValue() { final String key = "prop"; final String value = "exchange"; _context.setProperty(key, value); Assert.assertEquals(value, _context.getPropertyValue(key)); }
@Override @SuppressWarnings("unchecked") public <T> T getPropertyValue(String name) { Property prop = _properties.get(name); if (prop != null) { return (T) prop.getValue(); } return null; }
DefaultContext implements Context { @Override @SuppressWarnings("unchecked") public <T> T getPropertyValue(String name) { Property prop = _properties.get(name); if (prop != null) { return (T) prop.getValue(); } return null; } }
DefaultContext implements Context { @Override @SuppressWarnings("unchecked") public <T> T getPropertyValue(String name) { Property prop = _properties.get(name); if (prop != null) { return (T) prop.getValue(); } return null; } DefaultContext(Scope defaultScope, Map<String, Property> properties);  DefaultContext(Scope defaultScope);  DefaultContext(); }
DefaultContext implements Context { @Override @SuppressWarnings("unchecked") public <T> T getPropertyValue(String name) { Property prop = _properties.get(name); if (prop != null) { return (T) prop.getValue(); } return null; } DefaultContext(Scope defaultScope, Map<String, Property> properties);  DefaultContext(Scope defaultScope);  DefaultContext(); @Override @SuppressWarnings("unchecked") T getPropertyValue(String name); @Override void removeProperties(); @Override Context setProperties(Set<Property> properties); @Override Set<Property> getProperties(); @Override void removeProperty(Property property); @Override Property getProperty(String name); @Override Property setProperty(String name, Object val); @Override void mergeInto(Context context); @Override Set<Property> getProperties(String label); @Override void removeProperties(String label); @Override Property getProperty(String name, Scope scope); @Override Set<Property> getProperties(Scope scope); @Override void removeProperties(Scope scope); @Override Property setProperty(String name, Object val, Scope scope); void setScope(Scope scope); @Override String toString(); }
DefaultContext implements Context { @Override @SuppressWarnings("unchecked") public <T> T getPropertyValue(String name) { Property prop = _properties.get(name); if (prop != null) { return (T) prop.getValue(); } return null; } DefaultContext(Scope defaultScope, Map<String, Property> properties);  DefaultContext(Scope defaultScope);  DefaultContext(); @Override @SuppressWarnings("unchecked") T getPropertyValue(String name); @Override void removeProperties(); @Override Context setProperties(Set<Property> properties); @Override Set<Property> getProperties(); @Override void removeProperty(Property property); @Override Property getProperty(String name); @Override Property setProperty(String name, Object val); @Override void mergeInto(Context context); @Override Set<Property> getProperties(String label); @Override void removeProperties(String label); @Override Property getProperty(String name, Scope scope); @Override Set<Property> getProperties(Scope scope); @Override void removeProperties(Scope scope); @Override Property setProperty(String name, Object val, Scope scope); void setScope(Scope scope); @Override String toString();  }