PersistentSet implements Iterable<E>, Initialisable { public void clear() throws DataAccessLayerException { _map.clear(); } PersistentSet(final Class<E> elementClass, final String name); @Override void initialise(final DataAccessLayerFactory factory); boolean add(final E e); boolean addAll(final Collection<? extends E> collect); void clear(); boolean contains(final E o); boolean containsAll(final Collection<? extends E> collect); boolean isEmpty(); Iterator<E> iterator(); boolean remove(final E o); boolean removeAll(final Collection<? extends E> collect); boolean retainAll(final Collection<? extends E> collect); int size(); @SuppressWarnings("hiding") E[] toArray(final E[] a);  }
@Test public void clearTest() throws DataAccessLayerException { CLASS_UNDER_TEST.clear(); assertTrue(CLASS_UNDER_TEST.isEmpty()); }