org.apache.velocity.test.misc
Class TestContext

java.lang.Object
  extended by org.apache.velocity.test.misc.TestContext
All Implemented Interfaces:
Context

public class TestContext
extends Object
implements Context

Used for testing EvaluateContext. For testing purposes, this is a case insensitive context.

Version:
$Id: TestContext.java 522413 2007-03-26 04:34:15Z wglass $
Author:
Will Glass-Husain

Constructor Summary
TestContext()
           
 
Method Summary
 boolean containsKey(Object key)
           
 Object get(String key)
           
 Object[] getKeys()
           
 Object put(String key, Object value)
           
 Object remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestContext

public TestContext()
Method Detail

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Context

get

public Object get(String key)
Specified by:
get in interface Context

getKeys

public Object[] getKeys()
Specified by:
getKeys in interface Context

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Context

remove

public Object remove(Object key)
Specified by:
remove in interface Context


Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.