@Test public void testUpdateMetricProfile() { controllerUnderTest.updateMetricProfile("id", true); verify(controllerUnderTest, times(1)).updateMetricProfile("id", true); }
@PutMapping @ResponseStatus(HttpStatus.OK) public void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary) { metricProfilingRepo.updateMetricProfile(id, isStationary); }
MetricProfileController { @PutMapping @ResponseStatus(HttpStatus.OK) public void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary) { metricProfilingRepo.updateMetricProfile(id, isStationary); } }
MetricProfileController { @PutMapping @ResponseStatus(HttpStatus.OK) public void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary) { metricProfilingRepo.updateMetricProfile(id, isStationary); }  }
MetricProfileController { @PutMapping @ResponseStatus(HttpStatus.OK) public void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary) { metricProfilingRepo.updateMetricProfile(id, isStationary); }  @PostMapping @ResponseStatus(HttpStatus.CREATED) String createMetricProfile(@RequestBody CreateMetricProfilingRequest request); @PutMapping @ResponseStatus(HttpStatus.OK) void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary); @PostMapping @RequestMapping(value = "/search/findByTags") Boolean profilingExists(@RequestBody Map<String, String> tags); }
MetricProfileController { @PutMapping @ResponseStatus(HttpStatus.OK) public void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary) { metricProfilingRepo.updateMetricProfile(id, isStationary); }  @PostMapping @ResponseStatus(HttpStatus.CREATED) String createMetricProfile(@RequestBody CreateMetricProfilingRequest request); @PutMapping @ResponseStatus(HttpStatus.OK) void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary); @PostMapping @RequestMapping(value = "/search/findByTags") Boolean profilingExists(@RequestBody Map<String, String> tags);  }