Class WireMockApplicationListener

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>

    @Order(2147483647)
    public class WireMockApplicationListener
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
    Listener that prepares the environment so that WireMock will work when it is initialized. For example, by finding free ports for the server to listen on.
    Author:
    Dave Syer, Matt Garner
    • Constructor Detail

      • WireMockApplicationListener

        public WireMockApplicationListener()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.boot.context.event.ApplicationPreparedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>