Merge pull request #8 from TPG-Teklada/failing-tests

Failed test
This commit is contained in:
TPG-Teklada 2024-05-19 01:13:21 +10:00 committed by GitHub
commit 938e4aa469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@
package org.springframework.samples.petclinic; package org.springframework.samples.petclinic;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -49,6 +50,11 @@ public class PetClinicIntegrationTests {
vets.findAll(); // served from cache vets.findAll(); // served from cache
} }
@Test
void testDemo() {
assertEquals(2, 2);
}
@Test @Test
void testOwnerDetails() { void testOwnerDetails() {
RestTemplate template = builder.rootUri("http://localhost:" + port).build(); RestTemplate template = builder.rootUri("http://localhost:" + port).build();