Fix test that expects an exception to fail if no exception is thrown
This commit is contained in:
parent
b88e0e9395
commit
7c9fd53c78
@ -65,6 +65,7 @@ public final class LinkedHashTreeMapTest extends TestCase {
|
||||
LinkedHashTreeMap<Object, String> map = new LinkedHashTreeMap<Object, String>();
|
||||
try {
|
||||
map.put(new Object(), "android");
|
||||
fail();
|
||||
} catch (ClassCastException expected) {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user