Skip to content

Commit f6d185e

Browse files
committed
refactor: remove @ExtendWith annotation as @jdbcTest has already contain it
1 parent b8f5459 commit f6d185e

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Diff for: src/test/java/ru/mystamps/web/feature/category/JdbcCategoryDaoTest.java

-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919

2020
import org.assertj.core.api.WithAssertions;
2121
import org.junit.jupiter.api.Test;
22-
import org.junit.jupiter.api.extension.ExtendWith;
2322
import org.springframework.beans.factory.annotation.Autowired;
2423
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
2524
import org.springframework.test.context.ContextConfiguration;
2625
import org.springframework.test.context.jdbc.Sql;
27-
import org.springframework.test.context.junit.jupiter.SpringExtension;
2826
import ru.mystamps.web.config.DaoConfig;
2927
import ru.mystamps.web.tests.Random;
3028

@@ -39,7 +37,6 @@
3937
"logging.level.root=WARN", "logging.level.ru.mystamps=WARN"
4038
})
4139
@ContextConfiguration(classes = DaoConfig.class)
42-
@ExtendWith(SpringExtension.class)
4340
public class JdbcCategoryDaoTest implements WithAssertions {
4441

4542
@Autowired

Diff for: src/test/java/ru/mystamps/web/feature/country/JdbcCountryDaoTest.java

-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919

2020
import org.assertj.core.api.WithAssertions;
2121
import org.junit.jupiter.api.Test;
22-
import org.junit.jupiter.api.extension.ExtendWith;
2322
import org.springframework.beans.factory.annotation.Autowired;
2423
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
2524
import org.springframework.test.context.ContextConfiguration;
2625
import org.springframework.test.context.jdbc.Sql;
27-
import org.springframework.test.context.junit.jupiter.SpringExtension;
2826
import ru.mystamps.web.config.DaoConfig;
2927
import ru.mystamps.web.tests.Random;
3028

@@ -39,7 +37,6 @@
3937
"logging.level.root=WARN", "logging.level.ru.mystamps=WARN"
4038
})
4139
@ContextConfiguration(classes = DaoConfig.class)
42-
@ExtendWith(SpringExtension.class)
4340
public class JdbcCountryDaoTest implements WithAssertions {
4441

4542
@Autowired

0 commit comments

Comments
 (0)