
com.github.fartherp.dbtest.spring.boot.test.autoconfigure.SpringBootBaseDbTestCase Maven / Gradle / Ivy
/*
* Copyright (c) 2019. CK. All rights reserved.
*/
package com.github.fartherp.dbtest.spring.boot.test.autoconfigure;
import com.github.fartherp.dbtest.dbunit.BaseBusinessTestCase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.OverrideAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTestContextBootstrapper;
import org.springframework.test.context.BootstrapWith;
import javax.sql.DataSource;
/**
* Created by IntelliJ IDEA.
* Author: CK
* Date: 2019/4/17
*/
@OverrideAutoConfiguration(enabled = false)
@AutoConfigureDBTest
@BootstrapWith(SpringBootTestContextBootstrapper.class)
public class SpringBootBaseDbTestCase extends BaseBusinessTestCase {
@Autowired
private DataSource dataSource;
@Override
protected DataSource getDataSource() {
return dataSource;
}
public String getDbunitDir() {
return "data";
}
public String getDbunitFile() {
return "sample_data_cust.xml";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy