@Test public void testHealthOk() { var api = new HealthApi(); var health = api.getHealth(); assertThat(health.getStatus()).isEqualTo("OK"); }
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public HealthDto getHealth() { LOGGER.info("Health GET API called."); var health = new HealthDto(); health.setStatus("OK"); return health; }
HealthApi { @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public HealthDto getHealth() { LOGGER.info("Health GET API called."); var health = new HealthDto(); health.setStatus("OK"); return health; } }
HealthApi { @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public HealthDto getHealth() { LOGGER.info("Health GET API called."); var health = new HealthDto(); health.setStatus("OK"); return health; }  }
HealthApi { @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public HealthDto getHealth() { LOGGER.info("Health GET API called."); var health = new HealthDto(); health.setStatus("OK"); return health; }  @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) HealthDto getHealth(); }
HealthApi { @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public HealthDto getHealth() { LOGGER.info("Health GET API called."); var health = new HealthDto(); health.setStatus("OK"); return health; }  @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) HealthDto getHealth();  }