Closed Bernardo-MG closed 5 years ago
Seems related to this problem:
One recomendation there is disabling the autocommit option in the datasource. But that didn't work.
The annotations were configured incorrectly. Apparently it was related to the listener and automatic transaction detection.
The correct configuration is:
@RunWith(JUnitPlatform.class)
@SpringJUnitConfig
@ContextConfiguration(
locations = { "classpath:context/application-context.xml" })
@Transactional
@Rollback
@Sql({ "/db/palette_group.sql" })
The test SQL scripts should be rolled back after the test, but they aren't. This breaks other tests, as there is additional data.
The logs show that it is being commited: