Annotation Type JUnitHttpServer


  • @Inherited
    @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface JUnitHttpServer

    JUnitHttpServer class.

    Version:
    $Id: $
    Author:
    ranger
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean basicAuth
      whether or not to use basic auth
      java.lang.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)
      java.lang.String keyPassword
      the key password
      java.lang.String keystore
      the location of the keystore if using HTTPS (defaults to target/test-classes/JUnitHttpServer.keystore)
      java.lang.String keystorePassword
      the keystore password
      int port
      the port to listen on
      java.lang.String resource
      the directory from which to serve test files
      java.lang.String[] vhosts
      the list of virtual hosts to respond to, defaults to "localhost"
      Webapp[] webapps
      zero or more webapps to include, with contexts
    • Element Detail

      • resource

        java.lang.String resource
        the directory from which to serve test files
        Default:
        "target/test-classes"
      • port

        int port
        the port to listen on
        Default:
        9162
      • vhosts

        java.lang.String[] vhosts
        the list of virtual hosts to respond to, defaults to "localhost"
        Default:
        {"localhost", "127.0.0.1", "::1", "[0000:0000:0000:0000:0000:0000:0000:0001]"}
      • https

        boolean https
        whether or not to use HTTPS (defaults to HTTP)
        Default:
        false
      • basicAuth

        boolean basicAuth
        whether or not to use basic auth
        Default:
        false
      • basicAuthFile

        java.lang.String basicAuthFile
        the basic auth property file (defaults to target/test-classes/realm.properties)
        Default:
        "target/test-classes/realm.properties"
      • keystore

        java.lang.String keystore
        the location of the keystore if using HTTPS (defaults to target/test-classes/JUnitHttpServer.keystore)
        Default:
        "target/test-classes/JUnitHttpServer.keystore"
      • keystorePassword

        java.lang.String keystorePassword
        the keystore password
        Default:
        "opennms"
      • keyPassword

        java.lang.String keyPassword
        the key password
        Default:
        "opennms"
      • webapps

        Webapp[] webapps
        zero or more webapps to include, with contexts
        Default:
        {}