lodsve.test.mock.dbunit.BaseDbUnitTest Maven / Gradle / Ivy
/*
* Copyright (C) 2018 Sun.Hao
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/****************************************************************************************
* Copyright © 2003-2012 ZTEsoft Corporation. All rights reserved. Reproduction or
* transmission in whole or in part, in any form or by any means, electronic, mechanical
* or otherwise, is prohibited without the prior written consent of the copyright owner.
****************************************************************************************/
package lodsve.test.mock.dbunit;
import com.github.springtestdbunit.DbUnitTestExecutionListener;
import lodsve.test.base.BaseTest;
import org.junit.FixMethodOrder;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
/**
* 使用dbunit对数据库操作的单元测试.
*
* @author sunhao([email protected])
* @date 16-3-10 12:34
*/
@RunWith(SpringJUnit4ClassRunner.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@TestExecutionListeners({
DependencyInjectionTestExecutionListener.class, DbUnitTestExecutionListener.class
})
public class BaseDbUnitTest extends BaseTest {
}