Package org.teavm.classlib.support

Examples of org.teavm.classlib.support.Support_UnmodifiableCollectionTest


        Hashtable<Integer, Integer> myHashtable = new Hashtable<>();
        for (int i = 0; i < 100; i++)
            myHashtable.put(new Integer(i), new Integer(i));
        Collection<Integer> values = myHashtable.values();
        new Support_UnmodifiableCollectionTest(values).runTest();
        values.remove(new Integer(0));
        assertTrue("Removing from the values collection should remove from the original map",
                !myHashtable.containsValue(new Integer(0)));
    }
View Full Code Here

TOP

Related Classes of org.teavm.classlib.support.Support_UnmodifiableCollectionTest

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.