commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pj...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestStaticBucketMap.java
Date Thu, 15 Aug 2002 03:23:08 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message