Class GrpcMockTestExecutionListener

java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.grpcmock.springboot.GrpcMockTestExecutionListener
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

public final class GrpcMockTestExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
Dirties the test context if WireMock was running on a fixed port.
Author:
Fadelis
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterTestClass(org.springframework.test.context.TestContext testContext)
     
    void
    afterTestMethod(org.springframework.test.context.TestContext testContext)
     
    void
    prepareTestInstance(org.springframework.test.context.TestContext testContext)
     

    Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener

    afterTestExecution, beforeTestClass, beforeTestExecution, beforeTestMethod, getOrder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GrpcMockTestExecutionListener

      public GrpcMockTestExecutionListener()
  • Method Details

    • prepareTestInstance

      public void prepareTestInstance(org.springframework.test.context.TestContext testContext)
      Specified by:
      prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
      Overrides:
      prepareTestInstance in class org.springframework.test.context.support.AbstractTestExecutionListener
    • afterTestClass

      public void afterTestClass(org.springframework.test.context.TestContext testContext)
      Specified by:
      afterTestClass in interface org.springframework.test.context.TestExecutionListener
      Overrides:
      afterTestClass in class org.springframework.test.context.support.AbstractTestExecutionListener
    • afterTestMethod

      public void afterTestMethod(org.springframework.test.context.TestContext testContext)
      Specified by:
      afterTestMethod in interface org.springframework.test.context.TestExecutionListener
      Overrides:
      afterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListener