Package org.rssowl.core.internal.persist

Examples of org.rssowl.core.internal.persist.LongHashSet


        assertAddAndContains(set, setSize, keysInSet);
    }

    @Test
    public void testRemoveFromEmpty() {
        LongHashSet set = new LongHashSet();
        assertFalse(set.remove(50));
    }
View Full Code Here


    @Test
    public void testRemoveAbsent() {
        Set<Long> generated = generateAbsent();

        LongHashSet set = createFromJavaSet();
        int setSize = set.size();

        for (long element : generated) {
            set.remove(element);
            assertEquals(setSize, set.size());
            assertFalse(set.contains(element));
        }
    }
View Full Code Here

        return generated;
    }

    @Test
    public void testCopy() {
        LongHashSet copy = new LongHashSet(createFromJavaSet());
        assertEquals(javaSet.size(), copy.size());

        for (Long element : javaSet)
          assertTrue(copy.contains(element));
    }
View Full Code Here

TOP

Related Classes of org.rssowl.core.internal.persist.LongHashSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.