import com.izouma.awesomeadmin.util.DatabaseUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.GenericXmlContextLoader;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@RunWith(value = SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:/spring/applicationContext.xml"}, loader = GenericXmlContextLoader.class)
@Transactional
public class DatabaseServiceTest {

    @Test
    public void testLoadDatabaseTables() {

        List<String> tables = DatabaseUtil.loadDatabaseTables(null);

        System.out.println(tables);
    }

}
