test_class.declarator: processor = new MediaRequestProcessor()
test_class.modifier: private
test_class.original_string: private MediaRequestProcessor processor = new MediaRequestProcessor();
test_class.type: MediaRequestProcessor
test_class.var_name: processor
test_class.declarator: adapterMock = EasyMock.createStrictMock(MediaCollectionAdapter.class)
test_class.modifier: private
test_class.original_string: private MediaCollectionAdapter adapterMock = EasyMock.createStrictMock(MediaCollectionAdapter.class);
test_class.type: MediaCollectionAdapter
test_class.var_name: adapterMock
test_class.declarator: requestMock = EasyMock.createStrictMock(RequestContext.class)
test_class.modifier: private
test_class.original_string: private RequestContext requestMock = EasyMock.createStrictMock(RequestContext.class);
test_class.type: RequestContext
test_class.var_name: requestMock
test_class.declarator: responseMock = EasyMock.createStrictMock(ResponseContext.class)
test_class.modifier: private
test_class.original_string: private ResponseContext responseMock = EasyMock.createStrictMock(ResponseContext.class);
test_class.type: ResponseContext
test_class.var_name: responseMock
test_class.file: server/src/test/java/org/apache/abdera/protocol/server/processors/MediaRequestProcessorTest.java
test_class.identifier: MediaRequestProcessorTest
test_case.body: @Test
          public void testProcessMediaHead() {
                  EasyMock.replay(responseMock);
                  
                  EasyMock.expect(requestMock.getMethod()).andReturn("HEAD");
                  EasyMock.replay(requestMock);
                  
                  EasyMock.expect(adapterMock.headMedia(requestMock)).andReturn(responseMock);
                  EasyMock.replay(adapterMock);
                  
                  ResponseContext response = processor.processMedia(requestMock, adapterMock);
                  assertNotNull(response);
          }
test_case.class_method_signature: MediaRequestProcessorTest.testProcessMediaHead()
test_case.full_signature: @Test public void testProcessMediaHead()
test_case.identifier: testProcessMediaHead
test_case.invocations: replay andReturn expect getMethod replay andReturn expect headMedia replay processMedia assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcessMediaHead()
focal_class.file: server/src/main/java/org/apache/abdera/protocol/server/processors/MediaRequestProcessor.java
focal_class.identifier: MediaRequestProcessor
focal_class.interfaces: implements RequestProcessor
focal_class.class_method_signature: MediaRequestProcessor.process(RequestContext context,
                                     WorkspaceManager workspaceManager,
                                     CollectionAdapter collectionAdapter)
focal_class.full_signature: public ResponseContext process(RequestContext context,
                                     WorkspaceManager workspaceManager,
                                     CollectionAdapter collectionAdapter)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (RequestContext context,
                                     WorkspaceManager workspaceManager,
                                     CollectionAdapter collectionAdapter)
focal_class.return: ResponseContext
focal_class.signature: ResponseContext process(RequestContext context,
                                     WorkspaceManager workspaceManager,
                                     CollectionAdapter collectionAdapter)
focal_class.class_method_signature: MediaRequestProcessor.processMedia(RequestContext context, CollectionAdapter adapter)
focal_class.full_signature: protected ResponseContext processMedia(RequestContext context, CollectionAdapter adapter)
focal_class.identifier: processMedia
focal_class.modifiers: protected
focal_class.parameters: (RequestContext context, CollectionAdapter adapter)
focal_class.return: ResponseContext
focal_class.signature: ResponseContext processMedia(RequestContext context, CollectionAdapter adapter)
focal_method.body: protected ResponseContext processMedia(RequestContext context, CollectionAdapter adapter) {
          String method = context.getMethod();
          if (adapter instanceof MediaCollectionAdapter) {
              MediaCollectionAdapter mcadapter = (MediaCollectionAdapter)adapter;
              if (method.equalsIgnoreCase("GET")) {
                  return mcadapter.getMedia(context);
              } else if (method.equalsIgnoreCase("POST")) {
                  return mcadapter.postMedia(context);
              } else if (method.equalsIgnoreCase("PUT")) {
                  return mcadapter.putMedia(context);
              } else if (method.equalsIgnoreCase("DELETE")) {
                  return mcadapter.deleteMedia(context);
              } else if (method.equalsIgnoreCase("HEAD")) {
                  return mcadapter.headMedia(context);
              } else if (method.equalsIgnoreCase("OPTIONS")) {
                  return mcadapter.optionsMedia(context);
              } else {
                  return null;
              }
          } else {
              return ProviderHelper.notallowed(context);
          }
      }
focal_method.class_method_signature: MediaRequestProcessor.processMedia(RequestContext context, CollectionAdapter adapter)
focal_method.full_signature: protected ResponseContext processMedia(RequestContext context, CollectionAdapter adapter)
focal_method.identifier: processMedia
focal_method.invocations: getMethod equalsIgnoreCase getMedia equalsIgnoreCase postMedia equalsIgnoreCase putMedia equalsIgnoreCase deleteMedia equalsIgnoreCase headMedia equalsIgnoreCase optionsMedia notallowed
focal_method.modifiers: protected
focal_method.parameters: (RequestContext context, CollectionAdapter adapter)
focal_method.return: ResponseContext
focal_method.signature: ResponseContext processMedia(RequestContext context, CollectionAdapter adapter)