1234567891011121314151617181920212223242526272829303132 |
- package com.gxzc.zen.`fun`
- import com.gxzc.zen.api.sys.model.SysDic
- import com.gxzc.zen.api.sys.service.ISysDicService
- import com.gxzc.zen.base.BaseTestKt
- import org.junit.Test
- import org.springframework.beans.factory.annotation.Autowired
- /**
- *
- * @author NorthLan
- * @date 2018/1/30
- * @url https://noahlan.com
- */
- class TestLogicDelete : BaseTestKt() {
- @Autowired
- private lateinit var sysDicService: ISysDicService
- @Test
- fun insertSysData() {
- sysDicService.insert(SysDic().also {
- it.key = "test"
- it.value = "testValue"
- it.sort = Integer(1)
- })
- }
- @Test
- fun testLogicDelete() {
- sysDicService.deleteById(1000L)
- }
- }
|