All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.testing.defaults.NoAppStartHttpServerCustomContextTypesTestingBase.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






NoAppStartHttpServerCustomContextTypesTestingBase (org.spincast:spincast-framework 1.0.0 API)












org.spincast.testing.defaults

Class NoAppStartHttpServerCustomContextTypesTestingBase<R extends RequestContext<?>,W extends WebsocketContext<?>>

    • Constructor Detail

      • NoAppStartHttpServerCustomContextTypesTestingBase

        public NoAppStartHttpServerCustomContextTypesTestingBase()
    • Method Detail

      • getAppTestingConfigs

        protected final AppTestingConfigs getAppTestingConfigs()
        Description copied from class: AppBasedTestingBase
        We force test classes to provide information about the required testing configurations.

        The bindings for those components will be automatically created.

        Specified by:
        getAppTestingConfigs in class AppBasedTestingBase<R extends RequestContext<?>,W extends WebsocketContext<?>>
        Returns:
        the testing configs informations or null to disable this process (you will then have to add the required config bindings by yourself).
      • getTestingConfigImplementationClass2

        protected Class<? extends SpincastConfig> getTestingConfigImplementationClass2()
      • callAppMainMethod

        protected final void callAppMainMethod()
        Description copied from class: AppBasedTestingBase
        Starts the application.

        In this method, you should call your application main() method.

        There is no need to start the Server here, since the target application is supposed to do it by itself, in general in an "@Inject init()" method!

        Specified by:
        callAppMainMethod in class AppBasedTestingBase<R extends RequestContext<?>,W extends WebsocketContext<?>>
      • getMainArgs

        protected String[] getMainArgs()
      • startServer

        protected void startServer()
      • beforeStartServer

        protected void beforeStartServer()
        Allows some initialization to be run once the Guice context is created, but before the Server is started.
      • clearRoutes

        protected void clearRoutes()
      • removeSpincastRoutesToo

        protected boolean removeSpincastRoutesToo()
        Should the default Spincast Routes be removed too? Or only the custom ones?
      • getRequestContextImplementationClass

        protected abstract Class<? extends RequestContext<?>> getRequestContextImplementationClass()
      • getWebsocketContextImplementationClass

        protected abstract Class<? extends WebsocketContext<?>> getWebsocketContextImplementationClass()

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy