net.webapp2.util.test
Class SpringMock

java.lang.Object
  extended by net.webapp2.util.test.SpringMock

public class SpringMock
extends Object

테스트 과정에서 Spring 컨텍스트 객체 역할 수행

Author:
younghoe

Field Summary
static String DEFAULT_CONTEXT_PROPERTIES_FILE_PATH
           
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
SpringMock()
           
 
Method Summary
 BeanFactory loadContext()
           
 void setContextPropertiesFilePath(String contextPropertiesFilePath)
          conf/context.properties로 설정된 컨텍스트 프로퍼티 파일 경로를 변경함
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

DEFAULT_CONTEXT_PROPERTIES_FILE_PATH

public static final String DEFAULT_CONTEXT_PROPERTIES_FILE_PATH
See Also:
Constant Field Values
Constructor Detail

SpringMock

public SpringMock()
Method Detail

loadContext

public BeanFactory loadContext()
                        throws FileNotFoundException,
                               IOException,
                               PropertyDefinitionNotFoundException
Throws:
FileNotFoundException
IOException
PropertyDefinitionNotFoundException

setContextPropertiesFilePath

public void setContextPropertiesFilePath(String contextPropertiesFilePath)
conf/context.properties로 설정된 컨텍스트 프로퍼티 파일 경로를 변경함

Parameters:
contextPropertiesFilePath - 컨텍스트 프로퍼티 파일 경로