|
|
@@ -1,59 +1,59 @@
|
|
|
-package cn.seecoder.query.dao;
|
|
|
-
|
|
|
-import cn.seecoder.query.Application;
|
|
|
-import org.junit.runner.RunWith;
|
|
|
-import org.mybatis.spring.annotation.MapperScan;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
-import org.springframework.stereotype.Repository;
|
|
|
-import org.springframework.test.context.junit4.SpringRunner;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author PuHong Weng
|
|
|
- * @date 2021/4/16
|
|
|
- * @description:
|
|
|
- */
|
|
|
-@SpringBootTest(classes = Application.class)
|
|
|
-@RunWith(SpringRunner.class)
|
|
|
-@MapperScan(basePackages = {"cn.seecoder.query.dao"}, annotationClass = Repository.class)
|
|
|
-class QueryMapperTest {
|
|
|
-
|
|
|
- private final QueryMapper queryMapper;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- QueryMapperTest(QueryMapper queryMapper) {
|
|
|
- this.queryMapper = queryMapper;
|
|
|
- }
|
|
|
-
|
|
|
-// @Test
|
|
|
-// void selectCommits() {
|
|
|
-// try{
|
|
|
+//package cn.seecoder.query.dao;
|
|
|
//
|
|
|
-// System.out.println(queryMapper.selectCommits());
|
|
|
-// }catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// Assert.fail();
|
|
|
-// }
|
|
|
-// }
|
|
|
+//import cn.seecoder.query.Application;
|
|
|
+//import org.junit.runner.RunWith;
|
|
|
+//import org.mybatis.spring.annotation.MapperScan;
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+//import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+//import org.springframework.stereotype.Repository;
|
|
|
+//import org.springframework.test.context.junit4.SpringRunner;
|
|
|
//
|
|
|
-// @Test
|
|
|
-// void selectBugLists() {
|
|
|
-// try{
|
|
|
-// System.out.println(queryMapper.selectBugLists());
|
|
|
-// }catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// Assert.fail();
|
|
|
-// }
|
|
|
-// }
|
|
|
+///**
|
|
|
+// * @author PuHong Weng
|
|
|
+// * @date 2021/4/16
|
|
|
+// * @description:
|
|
|
+// */
|
|
|
+//@SpringBootTest(classes = Application.class)
|
|
|
+//@RunWith(SpringRunner.class)
|
|
|
+//@MapperScan(basePackages = {"cn.seecoder.query.dao"}, annotationClass = Repository.class)
|
|
|
+//class QueryMapperTest {
|
|
|
//
|
|
|
-// @Test
|
|
|
-// void selectTreeLeaf() {
|
|
|
-// try{
|
|
|
+// private final QueryMapper queryMapper;
|
|
|
//
|
|
|
-// System.out.println(queryMapper.selectTreeLeaf());
|
|
|
-// }catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// Assert.fail();
|
|
|
-// }
|
|
|
+// @Autowired
|
|
|
+// QueryMapperTest(QueryMapper queryMapper) {
|
|
|
+// this.queryMapper = queryMapper;
|
|
|
// }
|
|
|
-}
|
|
|
+//
|
|
|
+//// @Test
|
|
|
+//// void selectCommits() {
|
|
|
+//// try{
|
|
|
+////
|
|
|
+//// System.out.println(queryMapper.selectCommits());
|
|
|
+//// }catch (Exception e){
|
|
|
+//// e.printStackTrace();
|
|
|
+//// Assert.fail();
|
|
|
+//// }
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @Test
|
|
|
+//// void selectBugLists() {
|
|
|
+//// try{
|
|
|
+//// System.out.println(queryMapper.selectBugLists());
|
|
|
+//// }catch (Exception e){
|
|
|
+//// e.printStackTrace();
|
|
|
+//// Assert.fail();
|
|
|
+//// }
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @Test
|
|
|
+//// void selectTreeLeaf() {
|
|
|
+//// try{
|
|
|
+////
|
|
|
+//// System.out.println(queryMapper.selectTreeLeaf());
|
|
|
+//// }catch (Exception e){
|
|
|
+//// e.printStackTrace();
|
|
|
+//// Assert.fail();
|
|
|
+//// }
|
|
|
+//// }
|
|
|
+//}
|