< prev index next >

test/jdk/java/util/Map/FunctionalCMEs.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 28,37 **** --- 28,38 ---- import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Map; + import java.util.TreeMap; import java.util.function.BiFunction; import org.testng.annotations.Test; import org.testng.annotations.DataProvider;
*** 51,60 **** --- 52,62 ---- return Arrays.asList( // Test maps that CME new Object[]{new HashMap<>(), true}, new Object[]{new Hashtable<>(), true}, new Object[]{new LinkedHashMap<>(), true}, + new Object[]{new TreeMap<>(), true}, // Test default Map methods - no CME new Object[]{new Defaults.ExtendsAbstractMap<>(), false} ).iterator(); }
< prev index next >