The test assertion is written incorrectly and always returns true. You can verify this by changing the expected string to a bad value.
assertThat(response.getBody().equals("Greetings from Spring Boot!"));
should be changed to
assertThat(response.getBody()).isEqualTo("Greetings from Spring Boot!");
The test assertion is written incorrectly and always returns true. You can verify this by changing the expected string to a bad value.
assertThat(response.getBody().equals("Greetings from Spring Boot!"));
should be changed toassertThat(response.getBody()).isEqualTo("Greetings from Spring Boot!");