TestLogicDelete.kt 709 B

1234567891011121314151617181920212223242526272829303132
  1. package com.gxzc.zen.`fun`
  2. import com.gxzc.zen.api.sys.model.SysDic
  3. import com.gxzc.zen.api.sys.service.ISysDicService
  4. import com.gxzc.zen.base.BaseTestKt
  5. import org.junit.Test
  6. import org.springframework.beans.factory.annotation.Autowired
  7. /**
  8. *
  9. * @author NorthLan
  10. * @date 2018/1/30
  11. * @url https://noahlan.com
  12. */
  13. class TestLogicDelete : BaseTestKt() {
  14. @Autowired
  15. private lateinit var sysDicService: ISysDicService
  16. @Test
  17. fun insertSysData() {
  18. sysDicService.insert(SysDic().also {
  19. it.key = "test"
  20. it.value = "testValue"
  21. it.sort = Integer(1)
  22. })
  23. }
  24. @Test
  25. fun testLogicDelete() {
  26. sysDicService.deleteById(1000L)
  27. }
  28. }