Enabled full suite of TestMap tests, and activated checks to see that
collection views are backed by map etc. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
869725582c
commit
8d61930eab
|
@ -77,7 +77,7 @@ public class TestStaticBucketMap extends TestMap {
|
|||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestStaticBucketMap.class);
|
||||
return BulkTest.makeSuite(TestStaticBucketMap.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args[]) {
|
||||
|
@ -89,28 +89,13 @@ public class TestStaticBucketMap extends TestMap {
|
|||
return new StaticBucketMap(30);
|
||||
}
|
||||
|
||||
// The verification method must be overridden because the collection views
|
||||
// are not backed by the map.
|
||||
|
||||
public void verifyEntrySet() {
|
||||
// update the entrySet view to the latest version, then proceed to
|
||||
// verify as usual.
|
||||
entrySet = map.entrySet();
|
||||
super.verifyEntrySet();
|
||||
public String[] ignoredSimpleTests() {
|
||||
String pre = "TestStaticBucketMap.bulkTestMap";
|
||||
String post = ".testCollectionIteratorFailFast";
|
||||
return new String[] {
|
||||
pre + "EntrySet" + post,
|
||||
pre + "KeySet" + post,
|
||||
pre + "Values" + post
|
||||
};
|
||||
}
|
||||
|
||||
public void verifyKeySet() {
|
||||
// update the keySet view to the latest version, then proceed to verify
|
||||
// as usual.
|
||||
keySet = map.keySet();
|
||||
super.verifyKeySet();
|
||||
}
|
||||
|
||||
public void verifyValues() {
|
||||
// update the values view to the latest version, then proceed to verify
|
||||
// as usual.
|
||||
values = map.values();
|
||||
super.verifyValues();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue