6 |
|
|
7 |
|
import junit.framework.*; |
8 |
|
import java.util.*; |
9 |
– |
import java.util.concurrent.*; |
10 |
– |
import java.io.*; |
9 |
|
|
10 |
|
public class EntryTest extends JSR166TestCase { |
11 |
|
public static void main(String[] args) { |
114 |
|
/** |
115 |
|
* setValue for SimpleImmutableEntry throws UnsupportedOperationException |
116 |
|
*/ |
117 |
< |
public void testsetValue2() { |
117 |
> |
public void testSetValue2() { |
118 |
|
Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); |
119 |
|
Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); |
120 |
|
assertEquals(k1, s.getKey()); |