-
-
Save doppleware/f478364fe1c79e3dda40501cd025f934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) | |
@Testcontainers | |
@ActiveProfiles(value = "postgres") | |
public class OwnerControllerTests { | |
@LocalServerPort | |
private Integer port; | |
@Container | |
@ServiceConnection | |
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:15-alpine"); | |
@BeforeEach | |
void setUp() { | |
//ownerRepository.deleteAll(); | |
RestAssured.baseURI = "http://localhost:" + port; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment