// Path: druid-spring-boot-example/druid-spring-boot-jpa-example/src/main/java/com/github/trang/druid/example/jpa/DruidJpaApplication.java
// @SpringBootApplication
// @Slf4j
// public class DruidJpaApplication implements CommandLineRunner {
// 
//     public static void main(String[] args) {
//         System.setProperty("druid.logType", "slf4j");
//         SpringApplication.run(DruidJpaApplication.class, args);
//     }
// 
//     @Autowired
//     private CityRepository cityRepository;
// 
//     @Override
//     public void run(String... args) {
//         Gson gson = new Gson();
//         cityRepository.findAll().stream()
//                 .map(gson::toJson)
//                 .forEach(log::info);
//     }
// 
// }
// 
// Path: druid-spring-boot-example/druid-spring-boot-jpa-example/src/main/java/com/github/trang/druid/example/jpa/repository/CityRepository.java
// public interface CityRepository extends JpaRepository<City, Long> {
// 
// }


import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.github.trang.druid.example.jpa.DruidJpaApplication;
import com.github.trang.druid.example.jpa.repository.CityRepository;
import com.google.gson.Gson;
package com.github.trang.druid.example.jpa.test.coveralls;



/**
 * BaseTest
 *
 * @author trang
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = DruidJpaApplication.class)
public abstract class BaseTest {

    protected static final Logger log = LoggerFactory.getLogger(BaseTest.class.getSimpleName());
    protected Gson gson = new Gson();

    @Autowired(required = false)
// Path: druid-spring-boot-example/druid-spring-boot-jpa-example/src/main/java/com/github/trang/druid/example/jpa/DruidJpaApplication.java
// @SpringBootApplication
// @Slf4j
// public class DruidJpaApplication implements CommandLineRunner {
// 
//     public static void main(String[] args) {
//         System.setProperty("druid.logType", "slf4j");
//         SpringApplication.run(DruidJpaApplication.class, args);
//     }
// 
//     @Autowired
//     private CityRepository cityRepository;
// 
//     @Override
//     public void run(String... args) {
//         Gson gson = new Gson();
//         cityRepository.findAll().stream()
//                 .map(gson::toJson)
//                 .forEach(log::info);
//     }
// 
// }
// 
// Path: druid-spring-boot-example/druid-spring-boot-jpa-example/src/main/java/com/github/trang/druid/example/jpa/repository/CityRepository.java
// public interface CityRepository extends JpaRepository<City, Long> {
// 
// }


// Path: druid-spring-boot-example/druid-spring-boot-jpa-example/src/test/java/com/github/trang/druid/example/jpa/test/coveralls/BaseTest.java
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.github.trang.druid.example.jpa.DruidJpaApplication;
import com.github.trang.druid.example.jpa.repository.CityRepository;
import com.google.gson.Gson;

package com.github.trang.druid.example.jpa.test.coveralls;



/**
 * BaseTest
 *
 * @author trang
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = DruidJpaApplication.class)
public abstract class BaseTest {

    protected static final Logger log = LoggerFactory.getLogger(BaseTest.class.getSimpleName());
    protected Gson gson = new Gson();

    @Autowired(required = false)
    protected CityRepository cityRepository;