test_class.declarator: RESOURCE = "resource"
test_class.modifier: private static final
test_class.original_string: private static final String RESOURCE = "resource";
test_class.type: String
test_class.var_name: RESOURCE
test_class.declarator: httpContextFactoryService
test_class.modifier: private
test_class.original_string: private HttpContextFactoryServiceImpl httpContextFactoryService;
test_class.type: HttpContextFactoryServiceImpl
test_class.var_name: httpContextFactoryService
test_class.declarator: bundle
test_class.modifier: private @Mock
test_class.original_string: private @Mock Bundle bundle;
test_class.type: Bundle
test_class.var_name: bundle
test_class.declarator: httpContext
test_class.modifier: private @Mock
test_class.original_string: private @Mock WrappingHttpContext httpContext;
test_class.type: WrappingHttpContext
test_class.var_name: httpContext
test_class.file: bundles/org.openhab.core.io.http/src/test/java/org/openhab/core/io/http/internal/HttpContextFactoryServiceImplTest.java
test_class.identifier: HttpContextFactoryServiceImplTest
test_case.body: @Test
      public void httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash() {
          HttpContext context = httpContextFactoryService.createDefaultHttpContext(bundle);
          context.getResource("/" + RESOURCE);
  
          verify(httpContext).wrap(bundle);
          verify(bundle).getResource(RESOURCE);
      }
test_case.class_method_signature: HttpContextFactoryServiceImplTest.httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash()
test_case.full_signature: @Test public void httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash()
test_case.identifier: httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash
test_case.invocations: createDefaultHttpContext getResource wrap verify getResource verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void httpContextShouldCallgetResourceOnBundleWithoutLeadingSlash()
focal_class.declarator: httpContext
focal_class.modifier: private
focal_class.original_string: private WrappingHttpContext httpContext;
focal_class.type: WrappingHttpContext
focal_class.var_name: httpContext
focal_class.file: bundles/org.openhab.core.io.http/src/main/java/org/openhab/core/io/http/internal/HttpContextFactoryServiceImpl.java
focal_class.identifier: HttpContextFactoryServiceImpl
focal_class.interfaces: implements HttpContextFactoryService
focal_class.class_method_signature: HttpContextFactoryServiceImpl.createDefaultHttpContext(Bundle bundle)
focal_class.full_signature: @Override public HttpContext createDefaultHttpContext(Bundle bundle)
focal_class.identifier: createDefaultHttpContext
focal_class.modifiers: @Override public
focal_class.parameters: (Bundle bundle)
focal_class.return: HttpContext
focal_class.signature: HttpContext createDefaultHttpContext(Bundle bundle)
focal_class.class_method_signature: HttpContextFactoryServiceImpl.setHttpContext(WrappingHttpContext httpContext)
focal_class.full_signature: @Reference(policy = ReferencePolicy.DYNAMIC) public void setHttpContext(WrappingHttpContext httpContext)
focal_class.identifier: setHttpContext
focal_class.modifiers: @Reference(policy = ReferencePolicy.DYNAMIC) public
focal_class.parameters: (WrappingHttpContext httpContext)
focal_class.return: void
focal_class.signature: void setHttpContext(WrappingHttpContext httpContext)
focal_class.class_method_signature: HttpContextFactoryServiceImpl.unsetHttpContext(WrappingHttpContext httpContext)
focal_class.full_signature: public void unsetHttpContext(WrappingHttpContext httpContext)
focal_class.identifier: unsetHttpContext
focal_class.modifiers: public
focal_class.parameters: (WrappingHttpContext httpContext)
focal_class.return: void
focal_class.signature: void unsetHttpContext(WrappingHttpContext httpContext)
focal_method.body: @Override
      public HttpContext createDefaultHttpContext(Bundle bundle) {
          return httpContext.wrap(bundle);
      }
focal_method.class_method_signature: HttpContextFactoryServiceImpl.createDefaultHttpContext(Bundle bundle)
focal_method.full_signature: @Override public HttpContext createDefaultHttpContext(Bundle bundle)
focal_method.identifier: createDefaultHttpContext
focal_method.invocations: wrap
focal_method.modifiers: @Override public
focal_method.parameters: (Bundle bundle)
focal_method.return: HttpContext
focal_method.signature: HttpContext createDefaultHttpContext(Bundle bundle)