22 |
|
static final String k2 = "2"; |
23 |
|
static final String v2 = "b"; |
24 |
|
|
25 |
– |
|
25 |
|
/** |
26 |
|
* A new SimpleEntry(k, v) holds k, v. |
27 |
|
*/ |
40 |
|
assertEquals(v1, s.getValue()); |
41 |
|
} |
42 |
|
|
44 |
– |
|
43 |
|
/** |
44 |
|
* A new SimpleEntry(entry(k, v)) holds k, v. |
45 |
|
*/ |
100 |
|
assertFalse(s2.equals(s)); |
101 |
|
} |
102 |
|
|
105 |
– |
|
103 |
|
/** |
104 |
|
* getValue returns last setValue for SimpleEntry |
105 |
|
*/ |
116 |
|
/** |
117 |
|
* setValue for SimpleImmutableEntry throws UnsupportedOperationException |
118 |
|
*/ |
119 |
< |
public void testsetValue2() { |
119 |
> |
public void testSetValue2() { |
120 |
|
Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); |
121 |
|
Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); |
122 |
|
assertEquals(k1, s.getKey()); |