You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by pj...@apache.org on 2002/08/15 05:23:08 UTC

cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestStaticBucketMap.java

pjack       2002/08/14 20:23:08

  Modified:    collections/src/test/org/apache/commons/collections
                        TestStaticBucketMap.java
  Log:
  Enabled full suite of TestMap tests, and activated checks to see that
  collection views are backed by map etc.
  
  Revision  Changes    Path
  1.2       +10 -25    jakarta-commons/collections/src/test/org/apache/commons/collections/TestStaticBucketMap.java
  
  Index: TestStaticBucketMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestStaticBucketMap.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestStaticBucketMap.java	21 Jun 2002 06:17:45 -0000	1.1
  +++ TestStaticBucketMap.java	15 Aug 2002 03:23:08 -0000	1.2
  @@ -77,7 +77,7 @@
       }
   
       public static Test suite() {
  -        return new TestSuite(TestStaticBucketMap.class);
  +        return BulkTest.makeSuite(TestStaticBucketMap.class);
       }
   
       public static void main(String[] args[]) {
  @@ -88,29 +88,14 @@
       public Map makeEmptyMap() {
           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
  +        };
  +    }   
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>