Sfoglia il codice sorgente

提交 使用原卷测试 代码

chenken 8 anni fa
parent
commit
7e008f1aea

+ 30 - 0
cqb-starter/src/test/java/com/qmth/cqb/PaperServiceTest.java

@@ -0,0 +1,30 @@
+package com.qmth.cqb;
+
+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.SpringRunner;
+
+import com.qmth.cqb.paper.service.PaperService;
+
+/**
+ * @author  	chenken
+ * @date    	2017年5月12日 下午1:35:39
+ * @company 	QMTH
+ * @description PaperServiceTest.java
+ */
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class PaperServiceTest {
+	@Autowired
+	PaperService paperService;
+	
+	@Test
+	public void testUseBasePaper(){
+		String selectedPaperIds = "58f7294f6bf08e3453d9836c";
+		String userId = "chenken";
+		paperService.useBasePaper(selectedPaperIds, userId);
+	}
+}
+