Browse Source

Polishing

pull/2014/head
Sam Brannen 7 years ago
parent
commit
93df24af16
  1. 6
      spring-test/src/test/java/org/springframework/test/context/jdbc/IsolatedTransactionModeSqlScriptsTests.java
  2. 4
      spring-test/src/test/java/org/springframework/test/context/junit4/SpringJUnit4TestSuite.java

6
spring-test/src/test/java/org/springframework/test/context/jdbc/RequiresNewTransactionSqlScriptsTests.java → spring-test/src/test/java/org/springframework/test/context/jdbc/IsolatedTransactionModeSqlScriptsTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -29,14 +29,14 @@ import static org.junit.Assert.*; @@ -29,14 +29,14 @@ import static org.junit.Assert.*;
/**
* Transactional integration tests that verify commit semantics for
* {@link SqlConfig#requireNewTransaction}.
* {@link SqlConfig#transactionMode} and {@link TransactionMode#ISOLATED}.
*
* @author Sam Brannen
* @since 4.1
*/
@ContextConfiguration(classes = PopulatedSchemaDatabaseConfig.class)
@DirtiesContext
public class RequiresNewTransactionSqlScriptsTests extends AbstractTransactionalJUnit4SpringContextTests {
public class IsolatedTransactionModeSqlScriptsTests extends AbstractTransactionalJUnit4SpringContextTests {
@BeforeTransaction
public void beforeTransaction() {

4
spring-test/src/test/java/org/springframework/test/context/junit4/SpringJUnit4TestSuite.java

@ -21,7 +21,7 @@ import org.junit.runners.Suite; @@ -21,7 +21,7 @@ import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import org.springframework.test.context.cache.ClassLevelDirtiesContextTests;
import org.springframework.test.context.cache.SpringRunnerContextCacheTests;
import org.springframework.test.context.jdbc.RequiresNewTransactionSqlScriptsTests;
import org.springframework.test.context.jdbc.IsolatedTransactionModeSqlScriptsTests;
import org.springframework.test.context.junit4.annotation.AnnotationConfigSpringJUnit4ClassRunnerAppCtxTests;
import org.springframework.test.context.junit4.annotation.BeanOverridingDefaultConfigClassesInheritedTests;
import org.springframework.test.context.junit4.annotation.BeanOverridingExplicitConfigClassesInheritedTests;
@ -111,7 +111,7 @@ StandardJUnit4FeaturesTests.class,// @@ -111,7 +111,7 @@ StandardJUnit4FeaturesTests.class,//
BeforeAndAfterTransactionAnnotationTests.class,//
TimedTransactionalSpringRunnerTests.class,//
ProgrammaticTxMgmtTests.class,//
RequiresNewTransactionSqlScriptsTests.class,//
IsolatedTransactionModeSqlScriptsTests.class,//
HibernateSessionFlushingTests.class //
})
public class SpringJUnit4TestSuite {

Loading…
Cancel
Save