@DirtiesContext is not working with Spring Boot and Kotlin

I'm trying to run some integration tests in Spring Boot. For this I believe we should use @DirtiesContext to clean up the database after each test has run.

I have tried several methods right now, but all of them have the same effect.

This is my setup:

Spring Boot 1.5.10.RELEASE

SQL Server 2016

Kotlin 1.2.21

This is the complete POM:




xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

com.brabantia.esb

log-db

0.0.1-SNAPSHOT

jar

log-db

Log database application for TIBCO ESB



org.springframework.boot

spring-boot-starter-parent

1.5.10.RELEASE







UTF-8

UTF-8

1.8

1.2.21

8.3.0

1.5.10.RELEASE

5.1.0

2.19.1



esb_logging_user

esb_logging_user



dbo

Related Posts