|
|
@@ -0,0 +1,32 @@
|
|
|
+package com.usoftchina.saas.document.service;
|
|
|
+
|
|
|
+
|
|
|
+import com.usoftchina.saas.document.DocumentApplication;
|
|
|
+import com.usoftchina.saas.document.mapper.CustomeraddressMapper;
|
|
|
+import org.junit.Test;
|
|
|
+import org.junit.runner.RunWith;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
+
|
|
|
+@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
+@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = DocumentApplication.class)
|
|
|
+@EnableAutoConfiguration
|
|
|
+public class CustomerTest {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CustomerService customerService;
|
|
|
+ @Autowired
|
|
|
+ private CustomeraddressMapper customeraddressMapper;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test(){
|
|
|
+ System.out.println(customerService.getFormData(new Long(1)));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test1(){
|
|
|
+ System.out.println(customeraddressMapper.selectByPrimaryKey(1));
|
|
|
+ }
|
|
|
+}
|