package org.synyx.urlaubsverwaltung;

import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.testcontainers.containers.MariaDBContainer;
import org.testcontainers.junit.jupiter.Testcontainers;

import static org.testcontainers.containers.MariaDBContainer.IMAGE;

@Testcontainers
@DirtiesContext
public abstract class TestContainersBase {

    static MariaDBContainer<?> mariaDB = new MariaDBContainer<>(IMAGE + ":10.4");

    @DynamicPropertySource
    static void mariaDBProperties(DynamicPropertyRegistry registry) {
        mariaDB.start();
        registry.add("spring.datasource.url", mariaDB::getJdbcUrl);
        registry.add("spring.datasource.username", mariaDB::getUsername);
        registry.add("spring.datasource.password", mariaDB::getPassword);
    }
}

@@ -276,64 +276,8 @@
 ner;
-%0Aimport org.testcontainers.junit.jupiter.Testcontainers;
 %0A%0Aim
@@ -347,24 +347,8 @@
 E;%0A%0A
-@Testcontainers%0A
 @Dir

Remove not needed Testcontainers annotation