mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-25 20:18:31 +00:00
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() {
|
public static Test suite() {
|
||||||
return new TestSuite(TestStaticBucketMap.class);
|
return BulkTest.makeSuite(TestStaticBucketMap.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args[]) {
|
public static void main(String[] args[]) {
|
||||||
@ -88,29 +88,14 @@ public class TestStaticBucketMap extends TestMap {
|
|||||||
public Map makeEmptyMap() {
|
public Map makeEmptyMap() {
|
||||||
return new StaticBucketMap(30);
|
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 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
public String[] ignoredSimpleTests() {
|
||||||
|
String pre = "TestStaticBucketMap.bulkTestMap";
|
||||||
|
String post = ".testCollectionIteratorFailFast";
|
||||||
|
return new String[] {
|
||||||
|
pre + "EntrySet" + post,
|
||||||
|
pre + "KeySet" + post,
|
||||||
|
pre + "Values" + post
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user