2017-05-15 20:41:27 +05:30
|
|
|
package com.baeldung.hikaricp;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.junit.Ignore;
|
|
|
|
import org.junit.Test;
|
2017-05-15 20:56:14 +02:00
|
|
|
import java.sql.SQLException;
|
2017-05-15 20:41:27 +05:30
|
|
|
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
|
2017-05-16 18:03:40 +02:00
|
|
|
public class HikariCPUnitTest {
|
2017-05-15 20:41:27 +05:30
|
|
|
|
2017-05-15 20:56:14 +02:00
|
|
|
@Test
|
|
|
|
@Ignore
|
|
|
|
public void givenConnection_thenFetchDbData() throws SQLException {
|
|
|
|
List<Employee> employees = HikariCPDemo.fetchData();
|
|
|
|
assertEquals(4, employees.size());
|
|
|
|
}
|
2017-05-15 20:41:27 +05:30
|
|
|
|
|
|
|
}
|