private EmbeddedServerRunner registerEmbeddedServer ( ExtensionContext context , boolean staticMode ) { Class < ? > testClass = context . getRequiredTestClass ( ) ; EmbeddedServer < ? > server = this . server == null ? instantiateServer ( testClass , configuration ) : this . server ; EmbeddedServerRunner serverAdapter = new EmbeddedServerRunner ( server ) ; serverAdapter . beforeAll ( ) ; putEmbeddedServerAdapterInStore ( context , serverAdapter , staticMode ) ; return serverAdapter ; }
Start and register the embedded server .