Example usage for org.springframework.boot.test.web.client LocalHostUriTemplateHandler LocalHostUriTemplateHandler

List of usage examples for org.springframework.boot.test.web.client LocalHostUriTemplateHandler LocalHostUriTemplateHandler

Introduction

In this page you can find the example usage for org.springframework.boot.test.web.client LocalHostUriTemplateHandler LocalHostUriTemplateHandler.

Prototype

public LocalHostUriTemplateHandler(Environment environment, String scheme) 

Source Link

Document

Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme and use the given environment to determine the context-path and port.

Usage

From source file:com.create.application.configuration.TestConfiguration.java

@Bean
public LocalHostUriTemplateHandler localHostUriTemplateHandler(Environment environment,
        AbstractConfigurableEmbeddedServletContainer container) {
    return new LocalHostUriTemplateHandler(environment, getSchema(container));
}