Class SoapServiceExtension

java.lang.Object
com.github.skjolber.mockito.soap.SoapExtension
com.github.skjolber.mockito.soap.SoapServiceExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.ParameterResolver

public class SoapServiceExtension extends SoapExtension
  • Constructor Details

    • SoapServiceExtension

      public SoapServiceExtension()
  • Method Details

    • proxy

      public <T> void proxy(T target, Class<T> port, String address, String wsdlLocation, List<String> schemaLocations, Map<String,Object> properties)
      Description copied from class: SoapExtension
      Create (and start) an endpoint with the given properties.
      Specified by:
      proxy in class SoapExtension
      Type Parameters:
      T - the type of the mocked class
      Parameters:
      target - instance calls are forwarded to
      port - service class
      address - address, i.e. http://localhost:1234
      wsdlLocation - wsdl location, or null
      schemaLocations - schema locations, or null
      properties - additional properties, like mtom-enabled etc.
    • assertValidAddress

      protected void assertValidAddress(String address)
      Overrides:
      assertValidAddress in class SoapExtension
    • supportsParameter

      public boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException
      Throws:
      org.junit.jupiter.api.extension.ParameterResolutionException
    • resolveParameter

      public Object resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException
      Throws:
      org.junit.jupiter.api.extension.ParameterResolutionException
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Throws:
      Exception
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Throws:
      Exception
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Throws:
      Exception
    • stop

      public void stop()
    • start

      public void start()
    • reset

      public void reset()
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Throws:
      Exception