Annotation Type JUnitHttpServer

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      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
    • Element Detail

      • resource

        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

        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

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

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

        String keystorePassword
        the keystore password
        Default:
        "opennms"
      • keyPassword

        String keyPassword
        the key password
        Default:
        "opennms"
      • webapps

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