feiyu02
2022-07-04 bd40c80eea0074f02a08d210a14bb0695243948f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package cn.flightfeather.supervision.lightshare.service.Impl
 
import cn.flightfeather.supervision.lightshare.service.CommitmentService
import org.junit.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit.jupiter.SpringExtension
import org.springframework.test.context.junit4.SpringRunner
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class CommitmentServiceImplTest {
 
    @Autowired
    lateinit var commitmentService: CommitmentService
 
    @Test
    fun createLetterOfCommitment() {
        val r = commitmentService.createLetterOfCommitment("", mutableMapOf<String, Any>().apply {
            put("Department", "某某企业")
            put("SocialCode", "9283987983179")
            put("ConstructionNo", "13u981479835")
            put("JuridicalPerson", "某某某")
            put("IdNo", "12314876128736128736")
            put("Type1", "□")
            put("Type2", "□")
            put("Type3", "□")
            put("Type4", "□")
            put("Sign", "签名")
            put("Seal", "盖章")
            put("Year", "2022")
            put("Month", "06")
            put("Day", "29")
        })
        println(r)
    }
}