Example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration getBaseUri

List of usage examples for org.springframework.data.rest.core.config RepositoryRestConfiguration getBaseUri

Introduction

In this page you can find the example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration getBaseUri.

Prototype

public URI getBaseUri() 

Source Link

Document

The base URI against which the exporter should calculate its links.

Usage

From source file:org.moserp.common.json_schema.factories.BasicPropertyFactoryTest.java

protected RepositoryRestConfiguration createConfiguration() {
    RepositoryRestConfiguration configuration = mock(RepositoryRestConfiguration.class);
    try {/*from   w  w w. j a v  a 2  s  .  c o m*/
        when(configuration.getBaseUri()).thenReturn(new URI("http://localhost:8080/"));
    } catch (URISyntaxException e) {
        throw new RuntimeException(e);
    }
    return configuration;
}