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: @Test
  	public void testSymbols() throws Exception {
  		// GIVEN
  		SearchResult result = new SearchResult(asList(), asList());
  
  		when(adminService.search(eq("volks"))).thenReturn(result);
  
  		// WHEN
  		mvc.perform(get("/api/admin")
  				.param("code", "volks"))
  		.andExpect(status().is2xxSuccessful());
  	}
test_case.class_method_signature: AdminControllerTest.testSymbols()
test_case.full_signature: @Test public void testSymbols()
test_case.identifier: testSymbols
test_case.invocations: asList asList thenReturn when search eq andExpect perform param get is2xxSuccessful status
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSymbols()
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: @GetMapping
  	public SearchResult symbols(String code) throws IOException {
  		return adminService.search(code);
  	}
focal_method.class_method_signature: AdminController.symbols(String code)
focal_method.full_signature: @GetMapping public SearchResult symbols(String code)
focal_method.identifier: symbols
focal_method.invocations: search
focal_method.modifiers: @GetMapping public
focal_method.parameters: (String code)
focal_method.return: SearchResult
focal_method.signature: SearchResult symbols(String code)