Package ninja.standalone
Class MockStandalone
- java.lang.Object
-
- ninja.standalone.AbstractConsole<T>
-
- ninja.standalone.AbstractStandalone<MockStandalone>
-
- ninja.standalone.MockStandalone
-
- All Implemented Interfaces:
Runnable,Console<MockStandalone>,Standalone<MockStandalone>
public class MockStandalone extends AbstractStandalone<MockStandalone>
Fake standalone for unit testing.
-
-
Field Summary
-
Fields inherited from class ninja.standalone.AbstractStandalone
baseUrls, contextPath, host, idleTimeout, port, serverUrls, sslKeystorePassword, sslKeystoreUri, sslPort, sslTruststorePassword, sslTruststoreUri
-
Fields inherited from class ninja.standalone.AbstractConsole
configured, externalConfigurationPath, logger, name, ninjaMode, ninjaProperties, overlayedNinjaProperties, overrideModuleOpt, overridePropertiesOpt, started
-
Fields inherited from interface ninja.standalone.Standalone
DEFAULT_CONTEXT_PATH, DEFAULT_DEV_NINJA_SSL_KEYSTORE_PASSWORD, DEFAULT_DEV_NINJA_SSL_KEYSTORE_URI, DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_PASSWORD, DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_URI, DEFAULT_HOST, DEFAULT_IDLE_TIMEOUT, DEFAULT_PORT, DEFAULT_SSL_PORT, DEFAULT_STANDALONE_CLASS, KEY_NINJA_CONTEXT_PATH, KEY_NINJA_HOST, KEY_NINJA_IDLE_TIMEOUT, KEY_NINJA_PORT, KEY_NINJA_SSL_KEYSTORE_PASSWORD, KEY_NINJA_SSL_KEYSTORE_URI, KEY_NINJA_SSL_PORT, KEY_NINJA_SSL_TRUSTSTORE_PASSWORD, KEY_NINJA_SSL_TRUSTSTORE_URI, KEY_NINJA_STANDALONE_CLASS
-
-
Constructor Summary
Constructors Constructor Description MockStandalone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoConfigure()protected voiddoJoin()protected voiddoShutdown()protected voiddoStart()com.google.inject.InjectorgetInjector()-
Methods inherited from class ninja.standalone.AbstractStandalone
contextPath, createBaseUrl, createBaseUrls, createServerUrl, createServerUrls, createSSLContext, doPostConfigure, doPreConfigure, getBaseUrls, getContextPath, getHost, getIdleTimeout, getLoggableIdentifier, getPort, getServerUrls, getSslKeystorePassword, getSslKeystoreUri, getSslPort, getSslTruststorePassword, getSslTruststoreUri, host, idleTimeout, isPortEnabled, isSslPortEnabled, join, logStarted, port, run, sslKeystorePassword, sslKeystoreUri, sslPort, sslTruststorePassword, sslTruststoreUri
-
Methods inherited from class ninja.standalone.AbstractConsole
checkConfigured, checkNotConfigured, checkStarted, configure, externalConfigurationPath, getExternalConfigurationPath, getName, getNinjaMode, getNinjaProperties, name, ninjaMode, overrideModule, overrideProperties, shutdown, start, tryToUnwrapInjectorException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ninja.standalone.Console
configure, externalConfigurationPath, getExternalConfigurationPath, getName, getNinjaMode, getNinjaProperties, name, ninjaMode, overrideModule, overrideProperties, shutdown, start
-
-
-
-
Method Detail
-
doConfigure
protected void doConfigure() throws Exception- Specified by:
doConfigurein classAbstractConsole<MockStandalone>- Throws:
Exception
-
doStart
protected void doStart() throws Exception- Specified by:
doStartin classAbstractConsole<MockStandalone>- Throws:
Exception
-
doJoin
protected void doJoin() throws Exception- Specified by:
doJoinin classAbstractStandalone<MockStandalone>- Throws:
Exception
-
doShutdown
protected void doShutdown()
- Specified by:
doShutdownin classAbstractConsole<MockStandalone>
-
getInjector
public com.google.inject.Injector getInjector()
-
-