commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/bidimap AbstractTestSortedBidiMap.java
Date Wed, 03 Dec 2003 14:02:49 GMT
scolebourne    2003/12/03 06:02:49

  Modified:    collections/src/test/org/apache/commons/collections/bidimap
                        AbstractTestSortedBidiMap.java
  Log:
  Fix tests to support unmodifiable test cases
  
  Revision  Changes    Path
  1.6       +20 -2     jakarta-commons/collections/src/test/org/apache/commons/collections/bidimap/AbstractTestSortedBidiMap.java
  
  Index: AbstractTestSortedBidiMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/bidimap/AbstractTestSortedBidiMap.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractTestSortedBidiMap.java	1 Dec 2003 22:34:54 -0000	1.5
  +++ AbstractTestSortedBidiMap.java	3 Dec 2003 14:02:49 -0000	1.6
  @@ -156,6 +156,8 @@
                   
       //-----------------------------------------------------------------------
       public void testBidiClearByHeadMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -199,6 +201,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiRemoveByHeadMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -239,6 +243,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiRemoveByHeadMapEntrySet() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -318,6 +324,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiClearByTailMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -363,6 +371,8 @@
   
       //-----------------------------------------------------------------------         
      
       public void testBidiRemoveByTailMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -404,6 +414,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiRemoveByTailMapEntrySet() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -490,6 +502,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiClearBySubMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -543,6 +557,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiRemoveBySubMap() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  @@ -585,6 +601,8 @@
   
       //-----------------------------------------------------------------------
       public void testBidiRemoveBySubMapEntrySet() {
  +        if (isRemoveSupported() == false) return;
  +        
           // extra test as other tests get complex
           SortedBidiMap sm = (SortedBidiMap) makeFullMap();
           Iterator it = sm.keySet().iterator();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message