Class GrpcMockApplicationListener

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

    public class GrpcMockApplicationListener
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
    Prepares environment for gRPC Mock and finds a free port if needed.
    Author:
    Fadelis
    • Constructor Detail

      • GrpcMockApplicationListener

        public GrpcMockApplicationListener()
    • 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>