org.opennms.core.test.annotations
Annotation Type JUnitHttpServer


@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface JUnitHttpServer

JUnitHttpServer class.

Version:
$Id: $
Author:
ranger

Optional Element Summary
 boolean basicAuth
          whether or not to use basic auth
 String basicAuthFile
          the basic auth property file (defaults to target/test-classes/realm.properties
 boolean https
          whether or not to use HTTPS (defaults to HTTP)
 String keyPassword
          the key password
 String keystore
          the location of the keystore if using HTTPS (defaults to target/test-classes/JUnitHttpServer.keystore)
 String keystorePassword
          the keystore password
 int port
          the port to listen on
 String resource
          the directory from which to serve test files
 String[] vhosts
          the list of virtual hosts to respond to, defaults to "localhost"
 Webapp[] webapps
          zero or more webapps to include, with contexts
 

resource

public abstract String resource
the directory from which to serve test files

Default:
"target/test-classes"

port

public abstract int port
the port to listen on

Default:
9162

vhosts

public abstract String[] vhosts
the list of virtual hosts to respond to, defaults to "localhost"

Default:
{"localhost", "127.0.0.1", "::1"}

https

public abstract boolean https
whether or not to use HTTPS (defaults to HTTP)

Default:
false

basicAuth

public abstract boolean basicAuth
whether or not to use basic auth

Default:
false

basicAuthFile

public abstract String basicAuthFile
the basic auth property file (defaults to target/test-classes/realm.properties

Default:
"target/test-classes/realm.properties"

keystore

public abstract String keystore
the location of the keystore if using HTTPS (defaults to target/test-classes/JUnitHttpServer.keystore)

Default:
"target/test-classes/JUnitHttpServer.keystore"

keystorePassword

public abstract String keystorePassword
the keystore password

Default:
"opennms"

keyPassword

public abstract String keyPassword
the key password

Default:
"opennms"

webapps

public abstract Webapp[] webapps
zero or more webapps to include, with contexts

Default:
{}


Copyright © 2011. All Rights Reserved.