play.api.http.HttpConfiguration.context()

Here are the examples of the java api play.api.http.HttpConfiguration.context() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : TestRestliStreamServerComponent.java
with BSD 2-Clause "Simplified" License
from linkedin

@Before
public void setUp() {
    HttpConfiguration config = createMock(HttpConfiguration.clreplaced);
    expect(config.context()).andReturn(CONTEXT);
    replay(config);
    _httpDispatcher = createMock(HttpDispatcher.clreplaced);
    RestliUriResolver restliUriResolver = new DefaultRestliUriResolver(config);
    restliServer = new RestliServerStreamComponent(CookiesConfiguration.apply(true), _httpDispatcher, restliUriResolver);
}

19 Source : TestRestliServerComponent.java
with BSD 2-Clause "Simplified" License
from linkedin

@Before
public void setUp() {
    HttpConfiguration config = createMock(HttpConfiguration.clreplaced);
    expect(config.context()).andReturn(CONTEXT);
    replay(config);
    _httpDispatcher = createMock(HttpDispatcher.clreplaced);
    RestliUriResolver restliUriResolver = new DefaultRestliUriResolver(config);
    restliServer = new RestliServerComponent(CookiesConfiguration.apply(true), _httpDispatcher, restliUriResolver);
}