Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. package com.inditex.tien.gedebaip.boot;
  2.  
  3. import javax.sql.DataSource;
  4.  
  5. import org.junit.Assert;
  6. import org.junit.Test;
  7. import org.junit.runner.RunWith;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.boot.test.context.SpringBootTest;
  10. import org.springframework.test.context.ActiveProfiles;
  11. import org.springframework.test.context.junit4.SpringRunner;
  12.  
  13. @RunWith(SpringRunner.class)
  14. @SpringBootTest
  15. @ActiveProfiles("test")
  16. public class HikariIntegrationTest {
  17.  
  18.     @Autowired
  19.     private DataSource dataSource;
  20.  
  21.     @Test
  22.     public void testDataSourceIsHikari() {
  23.         Assert.assertTrue(dataSource.getClass().getName().startsWith("com.zaxxer.hikari.HikariDataSource"));
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement