test_class.declarator: messageMetadata
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private MessageMetadata messageMetadata;
test_class.type: MessageMetadata
test_class.var_name: messageMetadata
test_class.declarator: resourceConfigurationParameter
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private ResourceConfigurationParameter resourceConfigurationParameter;
test_class.type: ResourceConfigurationParameter
test_class.var_name: resourceConfigurationParameter
test_class.declarator: resourceManager
test_class.modifier: @Mocked
  	private
test_class.original_string: @Mocked
  	private ResourceManager resourceManager;
test_class.type: ResourceManager
test_class.var_name: resourceManager
test_class.declarator: requestMessageContext
test_class.modifier: @Mocked
  	private
test_class.original_string: @Mocked
  	private RequestMessageContext requestMessageContext;
test_class.type: RequestMessageContext
test_class.var_name: requestMessageContext
test_class.declarator: responseMessageContext
test_class.modifier: @Mocked
  	private
test_class.original_string: @Mocked
  	private ResponseMessageContext responseMessageContext;
test_class.type: ResponseMessageContext
test_class.var_name: responseMessageContext
test_class.declarator: target
test_class.modifier: private
test_class.original_string: private DefaultResourceProcessor target;
test_class.type: DefaultResourceProcessor
test_class.var_name: target
test_class.file: hifiveResourceFramework/src/test/java/com/htmlhifive/resourcefw/service/DefaultResourceProcessorTest.java
test_class.identifier: DefaultResourceProcessorTest
test_case.body: @Test
  	public void testProcess() throws Exception {
  
  		final RequestMessage reqMsg1 = new RequestMessage(messageMetadata) {
  			{
  				put(messageMetadata.ACTION, "findById");
  				put(messageMetadata.REQUEST_PATH, "/resname1/1/");
  			}
  		};
  
  		final RequestMessage reqMsg2 = new RequestMessage(messageMetadata) {
  			{
  				put(messageMetadata.ACTION, "action");
  				put(messageMetadata.REQUEST_PATH, "/resname2");
  			}
  		};
  
  		final RequestMessageContainer reqContainer = new RequestMessageContainer(true) {
  			{
  				addMessage(reqMsg1);
  				addMessage(reqMsg2);
  			}
  		};
  
  		final Object item1 = new Object();
  		final ResponseMessage resMsg1 = new ResponseMessage(reqMsg1) {
  			{
  				put(messageMetadata.RESPONSE_STATUS, ResourceActionStatus.OK, MessageSource.PROCESSOR);
  				put(messageMetadata.RESPONSE_BODY, item1, MessageSource.PROCESSOR);
  				put(messageMetadata.PROCESSING_STATUS, ResourceProcessingStatus.CONTINUE, MessageSource.PROCESSOR);
  			}
  		};
  
  		final Object item2 = new Object();
  		final ResponseMessage resMsg2 = new ResponseMessage(reqMsg2) {
  			{
  				put(messageMetadata.RESPONSE_STATUS, ResourceActionStatus.OK, MessageSource.PROCESSOR);
  				put(messageMetadata.RESPONSE_BODY, item2, MessageSource.PROCESSOR);
  				put(messageMetadata.PROCESSING_STATUS, ResourceProcessingStatus.CONTINUE, MessageSource.PROCESSOR);
  			}
  		};
  
  		final ResponseMessageContainer expected = new ResponseMessageContainer(true) {
  			{
  				addMessage(resMsg1);
  				addMessage(resMsg2);
  			}
  		};
  
  		new Expectations() {
  			ResourceMethodInvoker invoker1;
  			ResourceMethodInvoker invoker2;
  			{
  				setField(target, resourceManager);
  
  				resourceManager.getResourceMethodByName("resname1", "findById", reqMsg1);
  				result = invoker1;
  
  				invoker1.invoke(reqMsg1);
  				result = item1;
  
  				resourceManager.getResourceMethodByName("resname2", "action", reqMsg2);
  				result = invoker2;
  
  				invoker2.invoke(reqMsg2);
  				result = item2;
  			}
  		};
  
  		ResponseMessageContainer actual = target.process(reqContainer);
  		KeyInfoUtil.printKeyInfo(actual);
  		KeyInfoUtil.printKeyInfo(expected);
  
  		assertThat(actual.getMessages().size(), is(equalTo(expected.getMessages().size())));
  		for (ResponseMessage msg : expected.getMessages()) {
  			assertThat(actual.getMessages().contains(msg), is(true));
  		}
  	}
test_case.class_method_signature: DefaultResourceProcessorTest.testProcess()
test_case.full_signature: @Test public void testProcess()
test_case.identifier: testProcess
test_case.invocations: put put put put addMessage addMessage put put put put put put addMessage addMessage setField getResourceMethodByName invoke getResourceMethodByName invoke process printKeyInfo printKeyInfo assertThat size getMessages is equalTo size getMessages getMessages assertThat contains getMessages is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcess()
focal_class.declarator: LOGGER = Logger.getLogger(DefaultResourceProcessor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(DefaultResourceProcessor.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: resourceManager
focal_class.modifier: private
focal_class.original_string: private ResourceManager resourceManager;
focal_class.type: ResourceManager
focal_class.var_name: resourceManager
focal_class.declarator: processContinuationStrategy = new AlwaysTerminatingStrategy()
focal_class.modifier: private
focal_class.original_string: private ProcessContinuationStrategy processContinuationStrategy = new AlwaysTerminatingStrategy();
focal_class.type: ProcessContinuationStrategy
focal_class.var_name: processContinuationStrategy
focal_class.declarator: messageMetadata
focal_class.modifier: private
focal_class.original_string: private MessageMetadata messageMetadata;
focal_class.type: MessageMetadata
focal_class.var_name: messageMetadata
focal_class.declarator: resourceConfigurationParameter
focal_class.modifier: private
focal_class.original_string: private ResourceConfigurationParameter resourceConfigurationParameter;
focal_class.type: ResourceConfigurationParameter
focal_class.var_name: resourceConfigurationParameter
focal_class.file: hifiveResourceFramework/src/main/java/com/htmlhifive/resourcefw/service/DefaultResourceProcessor.java
focal_class.identifier: DefaultResourceProcessor
focal_class.interfaces: implements ResourceProcessor
focal_class.class_method_signature: DefaultResourceProcessor.process(RequestMessageContainer requestMessages)
focal_class.full_signature: @Override public ResponseMessageContainer process(RequestMessageContainer requestMessages)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (RequestMessageContainer requestMessages)
focal_class.return: ResponseMessageContainer
focal_class.signature: ResponseMessageContainer process(RequestMessageContainer requestMessages)
focal_class.class_method_signature: DefaultResourceProcessor.preProcess(RequestMessageContainer requestMessages)
focal_class.full_signature: protected void preProcess(RequestMessageContainer requestMessages)
focal_class.identifier: preProcess
focal_class.modifiers: protected
focal_class.parameters: (RequestMessageContainer requestMessages)
focal_class.return: void
focal_class.signature: void preProcess(RequestMessageContainer requestMessages)
focal_class.class_method_signature: DefaultResourceProcessor.doProcess(RequestMessageContainer requestMessages)
focal_class.full_signature: protected ResponseMessageContainer doProcess(RequestMessageContainer requestMessages)
focal_class.identifier: doProcess
focal_class.modifiers: protected
focal_class.parameters: (RequestMessageContainer requestMessages)
focal_class.return: ResponseMessageContainer
focal_class.signature: ResponseMessageContainer doProcess(RequestMessageContainer requestMessages)
focal_class.class_method_signature: DefaultResourceProcessor.postProcess(RequestMessageContainer requestMessages, ResponseMessageContainer responseMessages)
focal_class.full_signature: protected void postProcess(RequestMessageContainer requestMessages, ResponseMessageContainer responseMessages)
focal_class.identifier: postProcess
focal_class.modifiers: protected
focal_class.parameters: (RequestMessageContainer requestMessages, ResponseMessageContainer responseMessages)
focal_class.return: void
focal_class.signature: void postProcess(RequestMessageContainer requestMessages, ResponseMessageContainer responseMessages)
focal_class.class_method_signature: DefaultResourceProcessor.processMessage(ResourceMethodInvoker resourceMethod, RequestMessage requestMessage)
focal_class.full_signature: protected ResponseMessage processMessage(ResourceMethodInvoker resourceMethod, RequestMessage requestMessage)
focal_class.identifier: processMessage
focal_class.modifiers: protected
focal_class.parameters: (ResourceMethodInvoker resourceMethod, RequestMessage requestMessage)
focal_class.return: ResponseMessage
focal_class.signature: ResponseMessage processMessage(ResourceMethodInvoker resourceMethod, RequestMessage requestMessage)
focal_class.class_method_signature: DefaultResourceProcessor.handleResourceException(RequestMessageContainer requestMessages,
  			AbstractResourceException e)
focal_class.full_signature: protected ResponseMessage handleResourceException(RequestMessageContainer requestMessages,
  			AbstractResourceException e)
focal_class.identifier: handleResourceException
focal_class.modifiers: protected
focal_class.parameters: (RequestMessageContainer requestMessages,
  			AbstractResourceException e)
focal_class.return: ResponseMessage
focal_class.signature: ResponseMessage handleResourceException(RequestMessageContainer requestMessages,
  			AbstractResourceException e)
focal_class.class_method_signature: DefaultResourceProcessor.createNextRequestMessage(Object resultObj, RequestMessage requestMessage)
focal_class.full_signature: protected RequestMessage createNextRequestMessage(Object resultObj, RequestMessage requestMessage)
focal_class.identifier: createNextRequestMessage
focal_class.modifiers: protected
focal_class.parameters: (Object resultObj, RequestMessage requestMessage)
focal_class.return: RequestMessage
focal_class.signature: RequestMessage createNextRequestMessage(Object resultObj, RequestMessage requestMessage)
focal_class.class_method_signature: DefaultResourceProcessor.getNextResource(RequestMessage requestMessage, Object messageOrItem)
focal_class.full_signature: protected ResourceMethodInvoker getNextResource(RequestMessage requestMessage, Object messageOrItem)
focal_class.identifier: getNextResource
focal_class.modifiers: protected
focal_class.parameters: (RequestMessage requestMessage, Object messageOrItem)
focal_class.return: ResourceMethodInvoker
focal_class.signature: ResourceMethodInvoker getNextResource(RequestMessage requestMessage, Object messageOrItem)
focal_class.class_method_signature: DefaultResourceProcessor.createResponseMessage(Object resultObj, RequestMessage requestMessage)
focal_class.full_signature: private ResponseMessage createResponseMessage(Object resultObj, RequestMessage requestMessage)
focal_class.identifier: createResponseMessage
focal_class.modifiers: private
focal_class.parameters: (Object resultObj, RequestMessage requestMessage)
focal_class.return: ResponseMessage
focal_class.signature: ResponseMessage createResponseMessage(Object resultObj, RequestMessage requestMessage)
focal_class.class_method_signature: DefaultResourceProcessor.getResourceManager()
focal_class.full_signature: protected ResourceManager getResourceManager()
focal_class.identifier: getResourceManager
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ResourceManager
focal_class.signature: ResourceManager getResourceManager()
focal_class.class_method_signature: DefaultResourceProcessor.setResourceManager(ResourceManager resourceManager)
focal_class.full_signature: @Override public void setResourceManager(ResourceManager resourceManager)
focal_class.identifier: setResourceManager
focal_class.modifiers: @Override public
focal_class.parameters: (ResourceManager resourceManager)
focal_class.return: void
focal_class.signature: void setResourceManager(ResourceManager resourceManager)
focal_class.class_method_signature: DefaultResourceProcessor.getProcessContinuationStrategy()
focal_class.full_signature: protected ProcessContinuationStrategy getProcessContinuationStrategy()
focal_class.identifier: getProcessContinuationStrategy
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ProcessContinuationStrategy
focal_class.signature: ProcessContinuationStrategy getProcessContinuationStrategy()
focal_class.class_method_signature: DefaultResourceProcessor.setProcessContinuationStrategy(ProcessContinuationStrategy processContinuationStrategy)
focal_class.full_signature: @Override public void setProcessContinuationStrategy(ProcessContinuationStrategy processContinuationStrategy)
focal_class.identifier: setProcessContinuationStrategy
focal_class.modifiers: @Override public
focal_class.parameters: (ProcessContinuationStrategy processContinuationStrategy)
focal_class.return: void
focal_class.signature: void setProcessContinuationStrategy(ProcessContinuationStrategy processContinuationStrategy)
focal_class.class_method_signature: DefaultResourceProcessor.getMessageMetadata()
focal_class.full_signature: protected MessageMetadata getMessageMetadata()
focal_class.identifier: getMessageMetadata
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: MessageMetadata
focal_class.signature: MessageMetadata getMessageMetadata()
focal_class.class_method_signature: DefaultResourceProcessor.setMessageMetadata(MessageMetadata messageMetadata)
focal_class.full_signature: @Override public void setMessageMetadata(MessageMetadata messageMetadata)
focal_class.identifier: setMessageMetadata
focal_class.modifiers: @Override public
focal_class.parameters: (MessageMetadata messageMetadata)
focal_class.return: void
focal_class.signature: void setMessageMetadata(MessageMetadata messageMetadata)
focal_class.class_method_signature: DefaultResourceProcessor.getResourceConfigurationParameter()
focal_class.full_signature: protected ResourceConfigurationParameter getResourceConfigurationParameter()
focal_class.identifier: getResourceConfigurationParameter
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ResourceConfigurationParameter
focal_class.signature: ResourceConfigurationParameter getResourceConfigurationParameter()
focal_class.class_method_signature: DefaultResourceProcessor.setResourceConfigurationParameter(ResourceConfigurationParameter resourceConfigurationParameter)
focal_class.full_signature: @Override public void setResourceConfigurationParameter(ResourceConfigurationParameter resourceConfigurationParameter)
focal_class.identifier: setResourceConfigurationParameter
focal_class.modifiers: @Override public
focal_class.parameters: (ResourceConfigurationParameter resourceConfigurationParameter)
focal_class.return: void
focal_class.signature: void setResourceConfigurationParameter(ResourceConfigurationParameter resourceConfigurationParameter)
focal_method.body: @Override
  	public ResponseMessageContainer process(RequestMessageContainer requestMessages) {
  
  		// 全体の事前処理
  		preProcess(requestMessages);
  
  		// メインプロセス
  		ResponseMessageContainer responseMessages = doProcess(requestMessages);
  
  		// 全体の事後処理
  		postProcess(requestMessages, responseMessages);
  
  		return responseMessages;
  	}
focal_method.class_method_signature: DefaultResourceProcessor.process(RequestMessageContainer requestMessages)
focal_method.full_signature: @Override public ResponseMessageContainer process(RequestMessageContainer requestMessages)
focal_method.identifier: process
focal_method.invocations: preProcess doProcess postProcess
focal_method.modifiers: @Override public
focal_method.parameters: (RequestMessageContainer requestMessages)
focal_method.return: ResponseMessageContainer
focal_method.signature: ResponseMessageContainer process(RequestMessageContainer requestMessages)