test_class.declarator: keyAction = new KeyAction()
test_class.modifier: private
test_class.original_string: private KeyAction keyAction = new KeyAction();
test_class.type: KeyAction
test_class.var_name: keyAction
test_class.file: ki4so-web/src/test/java/com/github/ebnew/ki4so/web/action/KeyActionTest.java
test_class.identifier: KeyActionTest
test_case.body: @Test
  	public void testFetchKey() throws UnsupportedEncodingException {
  		KeyService keyService = Mockito.mock(KeyService.class);
  		Ki4soKey ki4soKey = Mockito.mock(Ki4soKey.class);
  		Mockito.when(keyService.findKeyByAppId(Mockito.anyString())).thenReturn(ki4soKey);
  		keyAction.setKeyService(keyService);
  		Ki4soKey result = keyAction.fetchKey("100");
  		Assert.assertTrue(ki4soKey==result);
  	}
test_case.class_method_signature: KeyActionTest.testFetchKey()
test_case.full_signature: @Test public void testFetchKey()
test_case.identifier: testFetchKey
test_case.invocations: mock mock thenReturn when findKeyByAppId anyString setKeyService fetchKey assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFetchKey()
focal_class.declarator: keyService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private KeyService keyService;
focal_class.type: KeyService
focal_class.var_name: keyService
focal_class.file: ki4so-web/src/main/java/com/github/ebnew/ki4so/web/action/KeyAction.java
focal_class.identifier: KeyAction
focal_class.class_method_signature: KeyAction.setKeyService(KeyService keyService)
focal_class.full_signature: public void setKeyService(KeyService keyService)
focal_class.identifier: setKeyService
focal_class.modifiers: public
focal_class.parameters: (KeyService keyService)
focal_class.return: void
focal_class.signature: void setKeyService(KeyService keyService)
focal_class.class_method_signature: KeyAction.fetchKey(String appId)
focal_class.full_signature: @RequestMapping("/fetchKey") @ResponseBody public Ki4soKey fetchKey(String appId)
focal_class.identifier: fetchKey
focal_class.modifiers: @RequestMapping("/fetchKey") @ResponseBody public
focal_class.parameters: (String appId)
focal_class.return: Ki4soKey
focal_class.signature: Ki4soKey fetchKey(String appId)
focal_method.body: @RequestMapping("/fetchKey")
  	@ResponseBody
  	public Ki4soKey fetchKey(String appId){
  		return keyService.findKeyByAppId(appId);
  	}
focal_method.class_method_signature: KeyAction.fetchKey(String appId)
focal_method.full_signature: @RequestMapping("/fetchKey") @ResponseBody public Ki4soKey fetchKey(String appId)
focal_method.identifier: fetchKey
focal_method.invocations: findKeyByAppId
focal_method.modifiers: @RequestMapping("/fetchKey") @ResponseBody public
focal_method.parameters: (String appId)
focal_method.return: Ki4soKey
focal_method.signature: Ki4soKey fetchKey(String appId)