org.kuali.rice.test.server
Annotation Type JettyServer


@Documented
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface JettyServer

Annotation for bringing up an embedded JettyServer in unit tests

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

Optional Element Summary
 boolean addWebappResourceLoader
          Whether to explicitly add the webapp's ResourceLoader to the GlobalResourceLoader
 JettyServerLifecycle.ConfigMode configMode
          What to do with the webapp's Config: NONE - nothing, OVERRIDE - replace the current context config (the test harness config) with the webapp's config MERGE - merge the properties and objects into the current context config (but don't replace the whole config)
 String context
          The context name; this will be prepended with a slash "/", so don't prepend a slash
 int port
          The port to bring jetty up on; CONFIG_PARAM_PORT to refer to a port from a config param
 String portConfigParam
          The name of the config param from which to read the port
 String webapp
          The webapp file location, relative to the working directory of the unit test
 

webapp

public abstract String webapp
The webapp file location, relative to the working directory of the unit test

Default:
"../src/test/webapp"

context

public abstract String context
The context name; this will be prepended with a slash "/", so don't prepend a slash

Default:
"SampleRiceClient"

port

public abstract int port
The port to bring jetty up on; CONFIG_PARAM_PORT to refer to a port from a config param

Default:
-1

portConfigParam

public abstract String portConfigParam
The name of the config param from which to read the port

Default:
"kns.port"

configMode

public abstract JettyServerLifecycle.ConfigMode configMode
What to do with the webapp's Config: NONE - nothing, OVERRIDE - replace the current context config (the test harness config) with the webapp's config MERGE - merge the properties and objects into the current context config (but don't replace the whole config)

Default:
org.kuali.rice.test.lifecycles.JettyServerLifecycle.ConfigMode.OVERRIDE

addWebappResourceLoader

public abstract boolean addWebappResourceLoader
Whether to explicitly add the webapp's ResourceLoader to the GlobalResourceLoader

Default:
true


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