Class 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
    • Method Summary

      Modifier and Type Method Description
      void afterTestClass​(org.springframework.test.context.TestContext testContext)  
      void afterTestMethod​(org.springframework.test.context.TestContext testContext)  
      void beforeTestClass​(org.springframework.test.context.TestContext testContext)  
      • Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener

        getOrder
      • Methods inherited from interface org.springframework.test.context.TestExecutionListener

        afterTestExecution, beforeTestExecution, beforeTestMethod, prepareTestInstance
    • Constructor Detail

      • GrpcMockTestExecutionListener

        public GrpcMockTestExecutionListener()
    • Method Detail

      • beforeTestClass

        public void beforeTestClass​(org.springframework.test.context.TestContext testContext)
      • afterTestClass

        public void afterTestClass​(org.springframework.test.context.TestContext testContext)
      • afterTestMethod

        public void afterTestMethod​(org.springframework.test.context.TestContext testContext)