Code example for HashSet

Methods: add

0
 
  @Test 
  public void testAllow() 
  { 
 
    HashSet<Integer> sources = new HashSet<Integer>();
    sources.add(23);
    sources.add(45);
    DbusEvent e = RngUtils.randomEvent((short) 23);
    LOG.debug(e);
    SourceDbusFilter sdFilter = new SourceDbusFilter(sources);
    assertTrue(sdFilter.allow(e));
  } 
 
}