Merge pull request #9379 from alimate/BAEL-4102

BAEL-4102: Fix integration test in spring-boot-persistence-2
This commit is contained in:
Eric Martin 2020-05-27 19:44:20 -05:00 committed by GitHub
commit ca6bd32485
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import javax.sql.DataSource;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.tomcatconnectionpool.application.SpringBootConsoleApplication; import com.baeldung.tomcatconnectionpool.application.SpringBootConsoleApplication;
@ -13,6 +14,7 @@ import org.springframework.boot.test.context.SpringBootTest;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = {SpringBootConsoleApplication.class}) @SpringBootTest(classes = {SpringBootConsoleApplication.class})
@TestPropertySource(properties = "spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource")
public class SpringBootTomcatConnectionPoolIntegrationTest { public class SpringBootTomcatConnectionPoolIntegrationTest {
@Autowired @Autowired