|
|
@@ -1,29 +1,24 @@
|
|
|
package com.uas.erp.test;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.uas.erp.schedular.UasSchedulingApplication;
|
|
|
import com.uas.erp.schedular.database.RestJdbcTemplate;
|
|
|
import com.uas.erp.schedular.entity.Master;
|
|
|
import com.uas.erp.schedular.util.ContextHolder;
|
|
|
-import org.junit.Test;
|
|
|
-import org.junit.runner.RunWith;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
/**
|
|
|
* Created by Pro1 on 2017/7/28.
|
|
|
*/
|
|
|
-@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
-@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = UasSchedulingApplication.class)
|
|
|
+//@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
+//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = UasSchedulingApplication.class)
|
|
|
public class RestJdbcTest {
|
|
|
|
|
|
@Autowired
|
|
|
private RestJdbcTemplate restJdbcTemplate;
|
|
|
|
|
|
- @Test
|
|
|
+// @Test
|
|
|
public void testQuery() throws SQLException{
|
|
|
Master master = new Master();
|
|
|
master.setMa_user("UAS");
|