test_class.declarator: adminService
test_class.modifier: @MockBean
  	private
test_class.original_string: @MockBean
  	private AdminService adminService;
test_class.type: AdminService
test_class.var_name: adminService
test_class.declarator: mvc
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private MockMvc mvc;
test_class.type: MockMvc
test_class.var_name: mvc
test_class.file: trading-webapp/src/test/java/fr/ymanvieu/trading/webapp/admin/controller/AdminControllerTest.java
test_class.identifier: AdminControllerTest
test_case.body: @WithMockUser
  	@Test
  	public void testDeleteNotAdmin() throws Exception {
  		
  		// WHEN
  		mvc.perform(delete("/api/admin/YAHOO/UBI.PA"))
  		.andExpect(status().isForbidden());
  	}
test_case.class_method_signature: AdminControllerTest.testDeleteNotAdmin()
test_case.full_signature: @WithMockUser @Test public void testDeleteNotAdmin()
test_case.identifier: testDeleteNotAdmin
test_case.invocations: andExpect perform delete isForbidden status
test_case.modifiers: @WithMockUser @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDeleteNotAdmin()
focal_class.declarator: messageSource
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private MessageSource messageSource;
focal_class.type: MessageSource
focal_class.var_name: messageSource
focal_class.declarator: adminService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private AdminService adminService;
focal_class.type: AdminService
focal_class.var_name: adminService
focal_class.file: trading-webapp/src/main/java/fr/ymanvieu/trading/webapp/admin/controller/AdminController.java
focal_class.identifier: AdminController
focal_class.class_method_signature: AdminController.symbols(String code)
focal_class.full_signature: @GetMapping public SearchResult symbols(String code)
focal_class.identifier: symbols
focal_class.modifiers: @GetMapping public
focal_class.parameters: (String code)
focal_class.return: SearchResult
focal_class.signature: SearchResult symbols(String code)
focal_class.class_method_signature: AdminController.add(Locale l, @PathVariable String code, @PathVariable String provider)
focal_class.full_signature: @PostMapping("/{provider}/{code}") public Response add(Locale l, @PathVariable String code, @PathVariable String provider)
focal_class.identifier: add
focal_class.modifiers: @PostMapping("/{provider}/{code}") public
focal_class.parameters: (Locale l, @PathVariable String code, @PathVariable String provider)
focal_class.return: Response
focal_class.signature: Response add(Locale l, @PathVariable String code, @PathVariable String provider)
focal_class.class_method_signature: AdminController.delete(Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_class.full_signature: @DeleteMapping("/{provider}/{symbol}") public Response delete(Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_class.identifier: delete
focal_class.modifiers: @DeleteMapping("/{provider}/{symbol}") public
focal_class.parameters: (Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_class.return: Response
focal_class.signature: Response delete(Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_method.body: @DeleteMapping("/{provider}/{symbol}")
  	public Response delete(Locale l, @PathVariable String symbol, @PathVariable String provider) {
  		Response response = new Response();
  
  		adminService.delete(symbol, provider);
  
  		response.setMessage(messageSource.getMessage("symbols.success.delete", new Object[] { symbol }, l));
  		response.setMessageTitle(messageSource.getMessage("success", null, l));
  
  		return response;
  	}
focal_method.class_method_signature: AdminController.delete(Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_method.full_signature: @DeleteMapping("/{provider}/{symbol}") public Response delete(Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_method.identifier: delete
focal_method.invocations: delete setMessage getMessage setMessageTitle getMessage
focal_method.modifiers: @DeleteMapping("/{provider}/{symbol}") public
focal_method.parameters: (Locale l, @PathVariable String symbol, @PathVariable String provider)
focal_method.return: Response
focal_method.signature: Response delete(Locale l, @PathVariable String symbol, @PathVariable String provider)