org.kuali.rice.test
Class JettyServerTestCase

java.lang.Object
  extended by org.junit.Assert
      extended by org.kuali.rice.test.BaseRiceTestCase
          extended by org.kuali.rice.test.RiceTestCase
              extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
                  extended by org.kuali.rice.test.BaseModuleTestCase
                      extended by org.kuali.rice.test.BaselineTestCase
                          extended by org.kuali.rice.test.JettyServerTestCase
All Implemented Interfaces:
MethodAware

public abstract class JettyServerTestCase
extends BaselineTestCase

A test case that supports declaratively defining a JettServer to run via annotations. Although this class supports running JettyServers on a per-suite and per-test basis, there is a pragmatic issue of concurrently running webapp contexts in the same classloader, so the webapp will have to support this (e.g. not rely on static singletons...) Another issue is that there is no suite "shutdown" per se, so a Jetty started up in a suite lifecycle will never get explicitly shut down.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
JettyServerTestCase(java.lang.String moduleName)
           
JettyServerTestCase(java.lang.String moduleName, BaselineTestCase.Mode mode)
           
 
Method Summary
protected  JettyServerLifecycle constructJettyServerLifecycle(JettyServer def)
           
protected  java.util.List<org.kuali.rice.core.lifecycle.Lifecycle> getPerTestLifecycles()
           
protected  java.util.List<org.kuali.rice.core.lifecycle.Lifecycle> getSuiteLifecycles()
          Returns the List of Lifecycles to start when the unit test suite is started
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackPerTestLifecycles, setUp
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyServerTestCase

public JettyServerTestCase(java.lang.String moduleName,
                           BaselineTestCase.Mode mode)
See Also:
BaselineTestCase#BaselineTestCase(String, Mode)

JettyServerTestCase

public JettyServerTestCase(java.lang.String moduleName)
See Also:
BaselineTestCase#BaselineTestCase(String)
Method Detail

constructJettyServerLifecycle

protected JettyServerLifecycle constructJettyServerLifecycle(JettyServer def)

getSuiteLifecycles

protected java.util.List<org.kuali.rice.core.lifecycle.Lifecycle> getSuiteLifecycles()
Description copied from class: RiceTestCase
Returns the List of Lifecycles to start when the unit test suite is started

Overrides:
getSuiteLifecycles in class RiceTestCase

getPerTestLifecycles

protected java.util.List<org.kuali.rice.core.lifecycle.Lifecycle> getPerTestLifecycles()
Overrides:
getPerTestLifecycles in class BaselineTestCase
Returns:
Lifecycles run every test run


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.