test_class.declarator: template
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private RestTemplate template;
test_class.type: RestTemplate
test_class.var_name: template
test_class.declarator: iUserService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private IUserService iUserService;
test_class.type: IUserService
test_class.var_name: iUserService
test_class.file: ad-service/ad-sponsor/src/test/java/top/ezttf/ad/controller/UserControllerTest.java
test_class.identifier: UserControllerTest
test_case.body: @Test
      public void testCreateUser() {
          Map<String, String> map = new HashMap<>();
          map.put("username", "qinyi");
          HttpHeaders headers = new HttpHeaders();
          headers.setContentType(MediaType.APPLICATION_JSON);
          HttpEntity<Map<String, String>> entity = new HttpEntity<>(map, headers);
          CommonResponse response = template.postForEntity("http://127.0.0.1:7000/ad-sponsor/create/user",
                  entity,
                  CommonResponse.class).getBody();
          log.debug(JSON.toJSONString(response));
      }
test_case.class_method_signature: UserControllerTest.testCreateUser()
test_case.full_signature: @Test public void testCreateUser()
test_case.identifier: testCreateUser
test_case.invocations: put setContentType getBody postForEntity debug toJSONString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateUser()
focal_class.declarator: iUserService
focal_class.modifier: private final
focal_class.original_string: private final IUserService iUserService;
focal_class.type: IUserService
focal_class.var_name: iUserService
focal_class.file: ad-service/ad-sponsor/src/main/java/top/ezttf/ad/controller/UserController.java
focal_class.identifier: UserController
focal_class.class_method_signature: UserController.UserController(IUserService iUserService)
focal_class.full_signature: @Autowired public  UserController(IUserService iUserService)
focal_class.identifier: UserController
focal_class.modifiers: @Autowired public
focal_class.parameters: (IUserService iUserService)
focal_class.signature:  UserController(IUserService iUserService)
focal_class.class_method_signature: UserController.createUser(@RequestBody CreateUserRequest request)
focal_class.full_signature: @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request)
focal_class.identifier: createUser
focal_class.modifiers: @PostMapping("/create/user") public
focal_class.parameters: (@RequestBody CreateUserRequest request)
focal_class.return: CreateUserResponse
focal_class.signature: CreateUserResponse createUser(@RequestBody CreateUserRequest request)
focal_method.body: @PostMapping("/create/user")
      public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException {
          log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request));
          return iUserService.createUser(request);
      }
focal_method.class_method_signature: UserController.createUser(@RequestBody CreateUserRequest request)
focal_method.full_signature: @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request)
focal_method.identifier: createUser
focal_method.invocations: info toJSONString createUser
focal_method.modifiers: @PostMapping("/create/user") public
focal_method.parameters: (@RequestBody CreateUserRequest request)
focal_method.return: CreateUserResponse
focal_method.signature: CreateUserResponse createUser(@RequestBody CreateUserRequest request)