From 4509092213185c000fa7258de79ea1ae5648359d Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Fri, 9 Apr 2004 09:39:16 +0000 Subject: [PATCH] Formatting and layout git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131631 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/map/TestLazyMap.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/test/org/apache/commons/collections/map/TestLazyMap.java b/src/test/org/apache/commons/collections/map/TestLazyMap.java index 8e1f5347a..42c500395 100644 --- a/src/test/org/apache/commons/collections/map/TestLazyMap.java +++ b/src/test/org/apache/commons/collections/map/TestLazyMap.java @@ -29,12 +29,15 @@ import org.apache.commons.collections.FactoryUtils; * {@link LazyMap} implementation. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/04/07 23:05:37 $ + * @version $Revision: 1.7 $ $Date: 2004/04/09 09:39:16 $ * * @author Phil Steitz */ 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 @@ public class TestLazyMap extends AbstractTestMap { 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 @@ public class TestLazyMap extends AbstractTestMap { 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());