Merge pull request #9379 from alimate/BAEL-4102
BAEL-4102: Fix integration test in spring-boot-persistence-2
This commit is contained in:
commit
ca6bd32485
|
@ -4,6 +4,7 @@ import javax.sql.DataSource;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.tomcatconnectionpool.application.SpringBootConsoleApplication;
|
||||
|
@ -13,6 +14,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = {SpringBootConsoleApplication.class})
|
||||
@TestPropertySource(properties = "spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource")
|
||||
public class SpringBootTomcatConnectionPoolIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
|
|
Loading…
Reference in New Issue