Java Code Examples for org.osgi.service.http.HttpContext#getResource()
The following examples show how to use
org.osgi.service.http.HttpContext#getResource() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpContextFactoryServiceImplTest.java From openhab-core with Eclipse Public License 2.0 | 5 votes |
@Test public void httpContextShouldCallgetResourceOnBundle() { HttpContext context = httpContextFactoryService.createDefaultHttpContext(bundle); context.getResource(RESOURCE); verify(httpContext).wrap(bundle); verify(bundle).getResource(RESOURCE); }
Example 2
Source File: HttpContextFactoryServiceImplTest.java From openhab-core with Eclipse Public License 2.0 | 5 votes |
@Test public void httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash() { HttpContext context = httpContextFactoryService.createDefaultHttpContext(bundle); context.getResource("/" + RESOURCE); verify(httpContext).wrap(bundle); verify(bundle).getResource(RESOURCE); }
Example 3
Source File: HttpContextFactoryServiceImplTest.java From smarthome with Eclipse Public License 2.0 | 5 votes |
@Test public void httpContextShouldCallgetResourceOnBundle() { HttpContext context = httpContextFactoryService.createDefaultHttpContext(bundle); context.getResource(RESOURCE); verify(httpContext).wrap(bundle); verify(bundle).getResource(RESOURCE); }
Example 4
Source File: HttpContextFactoryServiceImplTest.java From smarthome with Eclipse Public License 2.0 | 5 votes |
@Test public void httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash() { HttpContext context = httpContextFactoryService.createDefaultHttpContext(bundle); context.getResource("/" + RESOURCE); verify(httpContext).wrap(bundle); verify(bundle).getResource(RESOURCE); }