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:
pjack 2002-08-15 03:23:08 +00:00
parent 869725582c
commit 8d61930eab
1 changed files with 10 additions and 25 deletions

View File

@ -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();
}
}