Fixed the Datasource Assertion Issue
This commit is contained in:
parent
75b7419545
commit
3582280608
|
@ -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