@Test public void testGetProperties() { _context.setProperty(PROP_NAME, PROP_VAL); Set<Property> props = _context.getProperties(); Assert.assertTrue(props.size() == 1); Assert.assertEquals(PROP_VAL, props.iterator().next().getValue()); props.remove(PROP_NAME); Assert.assertTrue(_context.getProperties().size() == 1); }
@Override public Set<Property> getProperties() { return new HashSet<Property>(_properties.values()); }
DefaultContext implements Context { @Override public Set<Property> getProperties() { return new HashSet<Property>(_properties.values()); } }
DefaultContext implements Context { @Override public Set<Property> getProperties() { return new HashSet<Property>(_properties.values()); } DefaultContext(Scope defaultScope, Map<String, Property> properties);  DefaultContext(Scope defaultScope);  DefaultContext(); }
DefaultContext implements Context { @Override public Set<Property> getProperties() { return new HashSet<Property>(_properties.values()); } 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 public Set<Property> getProperties() { return new HashSet<Property>(_properties.values()); } 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();  }