Fixed test code after merge from master.

This commit is contained in:
Jordan Simpson 2020-10-07 23:13:14 -05:00
parent e9eb203671
commit 9ee0ab2af0
2 changed files with 8 additions and 3 deletions

View File

@ -72,6 +72,12 @@
<version>${org.springframework.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<version>${spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>

View File

@ -1,9 +1,8 @@
package com.baeldung.transactional;
import com.baeldung.persistence.service.transactional.PersistenceTransactionalTestConfig;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionSynchronizationManager;
@ -11,7 +10,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ContextConfiguration(classes = PersistenceTransactionalTestConfig.class)
@SpringBootApplication
@RunWith(SpringJUnit4ClassRunner.class)
public class TransactionalDetectionTest {