FileDocCategorySizeDatePackage
Support_SetTest.javaAPI DocAndroid 1.5 API1775Wed May 06 22:41:06 BST 2009tests.support

Support_SetTest

public class Support_SetTest extends TestCase

Fields Summary
Set
set
Constructors Summary
public Support_SetTest(String p1)

        super(p1);
    
public Support_SetTest(String p1, Set s)

        super(p1);
        set = s;
    
Methods Summary
public voidrunTest()

        // add
        assertTrue("Set Test - Adding a duplicate element changed the set",
                !set.add(new Integer(50)));
        assertTrue("Set Test - Removing an element did not change the set", set
                .remove(new Integer(50)));
        assertTrue(
                "Set Test - Adding and removing a duplicate element failed to remove it",
                !set.contains(new Integer(50)));
        set.add(new Integer(50));
        new Support_CollectionTest("", set).runTest();