Skip to content

Commit 1740b90

Browse files
committed
Make test non-transactional (DtaJpaTest does it) but start a transaction when deleting (extended persistence context requires it now?)
1 parent 41d24c3 commit 1740b90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/commonwl/view/workflow/QueuedWorkflowRepositoryTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@
1212
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
1313
import org.springframework.test.context.ContextConfiguration;
1414
import org.springframework.test.context.TestPropertySource;
15+
import org.springframework.transaction.annotation.Propagation;
1516
import org.springframework.transaction.annotation.Transactional;
1617

1718
@TestPropertySource(locations = "classpath:it-application.properties")
1819
@DataJpaTest(showSql = true)
20+
@Transactional(propagation = Propagation.NOT_SUPPORTED)
1921
@ContextConfiguration(initializers = PostgreSQLContextInitializer.class)
2022
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
2123
public class QueuedWorkflowRepositoryTest {
2224

2325
@Autowired QueuedWorkflowRepository repository;
2426

25-
@Transactional
2627
@Test
2728
public void deleteQueuedWorkflowByRetrievedFromTest() {
2829

0 commit comments

Comments
 (0)