11 |
|
|
12 |
|
public class EntryTest extends JSR166TestCase { |
13 |
|
public static void main(String[] args) { |
14 |
< |
junit.textui.TestRunner.run (suite()); |
14 |
> |
junit.textui.TestRunner.run(suite()); |
15 |
|
} |
16 |
|
public static Test suite() { |
17 |
< |
return new TestSuite(EntryTest.class); |
17 |
> |
return new TestSuite(EntryTest.class); |
18 |
|
} |
19 |
|
|
20 |
|
static final String k1 = "1"; |
126 |
|
assertEquals(v1, s.getValue()); |
127 |
|
try { |
128 |
|
s.setValue(k2); |
129 |
< |
fail(); |
129 |
> |
shouldThrow(); |
130 |
|
} catch (UnsupportedOperationException success) {} |
131 |
|
} |
132 |
|
} |