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/map TestLazyMap.java
Date Fri, 09 Apr 2004 09:39:16 GMT
scolebourne    2004/04/09 02:39:16

  Modified:    collections/src/test/org/apache/commons/collections/map
                        TestLazyMap.java
  Log:
  Formatting and layout
  
  Revision  Changes    Path
  1.7       +8 -10     jakarta-commons/collections/src/test/org/apache/commons/collections/map/TestLazyMap.java
  
  Index: TestLazyMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/map/TestLazyMap.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestLazyMap.java	7 Apr 2004 23:05:37 -0000	1.6
  +++ TestLazyMap.java	9 Apr 2004 09:39:16 -0000	1.7
  @@ -35,6 +35,9 @@
    */
   public class TestLazyMap extends AbstractTestMap {
       
  +    protected static final Factory oneFactory = FactoryUtils.constantFactory("One");
  +    protected static final Factory nullFactory = FactoryUtils.nullFactory();
  +    
       public TestLazyMap(String testName) {
           super(testName);
       }
  @@ -47,12 +50,8 @@
           String[] testCaseName = { TestLazyMap.class.getName()};
           junit.textui.TestRunner.main(testCaseName);
       }
  -    
  - //-------------------------------------------------------------------
  -    
  -    protected Factory oneFactory = FactoryUtils.constantFactory("One");
  -    protected Factory nullFactory = FactoryUtils.nullFactory();
  -    
  +
  +    //-----------------------------------------------------------------------    
       protected Map decorateMap(Map map, Factory factory) {
           return LazyMap.decorate(map, factory);
       }
  @@ -61,12 +60,11 @@
           return decorateMap(new HashMap(), nullFactory);
       }
       
  -//--------------------------------------------------------------------   
  -    
       protected Map makeTestMap(Factory factory) {
           return decorateMap(new HashMap(), factory);
       }
  -    
  +
  +    //-----------------------------------------------------------------------    
       public void testMapGet() {
           Map map = makeTestMap(oneFactory);
           assertEquals(0, map.size());
  
  
  

---------------------------------------------------------------------
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