I’m trying to perform integration tests on my DAO using Testcontainers. My target is to run every test in separate container. For this purpose I’ve added the @DirtiesContext annotation – my logic was that if I inject new EntityManager on every test it would have an updated DataSource. And yes its working practically fine, but ..
I have a Java backend developed with play framework in a vps (CentOs 7), inside the vps i have a docker with a oracle 11g. im using hikaricp for the connection: driverClassName=oracle.jdbc.driver.OracleDriver jdbcUrl=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1600))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) username=test password=123456 maximumPoolSize=8 minimumPoolSize=4 ..