org.vraptor.test
Class TestEngine

java.lang.Object
  extended by org.vraptor.test.TestEngine

public class TestEngine
extends Object

A test engine.

Author:
Guilherme Silveira

Constructor Summary
TestEngine(javax.servlet.ServletContext context)
           
 
Method Summary
static TestEngine createEngine()
          Loads vraptor configuration files and setups the engine
static TestEngine createEngine(javax.servlet.ServletContext context)
           
 TestSession createSession()
          Creates a new test session
 ApplicationContext getApplicationContext()
          Returns the application context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEngine

public TestEngine(javax.servlet.ServletContext context)
Method Detail

createEngine

public static TestEngine createEngine()
                               throws TestConfigException
Loads vraptor configuration files and setups the engine

Returns:
the new engine
Throws:
ConfigException - some configuration problem was found
TestConfigException

createEngine

public static TestEngine createEngine(javax.servlet.ServletContext context)
                               throws TestConfigException
Throws:
TestConfigException

createSession

public TestSession createSession()
Creates a new test session

Returns:
a test session

getApplicationContext

public ApplicationContext getApplicationContext()
Returns the application context

Returns:
the context


Copyright © 2004-2008 VRaptor. All Rights Reserved.