org.jitr.annotation
Annotation Type JitrConfiguration


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface JitrConfiguration

Test classes that want to customize how Jitr runs will need to be annotated with this annotation. If your test class is not annotated with this, it will use the Jitr defaults as defined here.


Optional Element Summary
 java.lang.Class<?> containerClass
          Sets the type of container you want Jitr to use.
 java.lang.String containerWorkPath
          Sets the relative path of the working directory for the container.
 java.lang.String contextPath
          Context path for the war.
 OperationalMode mode
          Operational mode to run in.
 int port
          Set the port number for the container to use.
 java.lang.String warPath
          The path to the unpacked war.
 

containerClass

public abstract java.lang.Class<?> containerClass
Sets the type of container you want Jitr to use.

Default:
java.lang.Object.class

containerWorkPath

public abstract java.lang.String containerWorkPath
Sets the relative path of the working directory for the container. The default container work path will be correct for Maven projects.

Default value: target

Default:
"target"

contextPath

public abstract java.lang.String contextPath
Context path for the war.

Default value: /

Default:
"/"

mode

public abstract OperationalMode mode
Operational mode to run in.

Default value: OperationalMode.INTERNAL

Default:
org.jitr.core.OperationalMode.INTERNAL

port

public abstract int port
Set the port number for the container to use. To let Jitr choose a random, unused port, do not set this value.

Default value: -1

Default:
-1

warPath

public abstract java.lang.String warPath
The path to the unpacked war. This is relative to the running location. The default war path will be correct for Maven projects.

Default value: src/main/webapp

Default:
"src/main/webapp"


Copyright © 2009. All Rights Reserved.