Class SpecHelper.ModuleBuilder

java.lang.Object
org.javalite.activeweb.SpecHelper.ModuleBuilder
Enclosing class:
SpecHelper

public class SpecHelper.ModuleBuilder extends Object
  • Constructor Details

    • ModuleBuilder

      protected ModuleBuilder(com.google.inject.Module module)
  • Method Details

    • override

      public SpecHelper.ModuleBuilder override(Class interfaceClass)
      Specifies what interface to override with a mock.
      Parameters:
      interfaceClass - class of an service interface to override by a mock.
      Returns:
      instance of SpecHelper.ModuleBuilder
    • with

      public SpecHelper.ModuleBuilder with(Class mockClass)
      Specifies what mock to use to override a real service in a module.
      Parameters:
      mockClass - a mock service class to override a real service in the module as eager singletone.
      Returns:
      instance of SpecHelper.ModuleBuilder
    • create

      public com.google.inject.Injector create()
      Terminal method of a builder. Use to generate an instance of Injector.
      Returns:
      properly configured instance of injector, with all