java +testNG 接口测试框架搭建------连接数据库(二)
在编写的测试脚本中导入连接数据的包: import com.alibaba.fastjson.JSONObject; import com.github.yongchristophertang.database.annotations.SqlDB;//注入数据库包 import com.github.yongchristophertang.database.testng.TestNGDBInjectionModuleFactory; import com.github.yongchristophertang.engine.java.ProxyFactories; import com.google.inject.Inject; import com.qiming.qqzw.resource.api.oversea.IHanyuOverSeaSceneService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context