Formatting and layout
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea2aa40945
commit
4509092213
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue