ChannelServiceTest.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.qs.mp.service;
  2. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  3. import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
  4. import com.qs.mp.MpApplication;
  5. import com.qs.mp.channel.domain.Channel;
  6. import com.qs.mp.channel.service.IChannelService;
  7. import org.junit.jupiter.api.Test;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
  10. import org.springframework.boot.test.context.SpringBootTest;
  11. import org.springframework.test.context.ActiveProfiles;
  12. import org.springframework.test.context.TestPropertySource;
  13. @AutoConfigureMockMvc
  14. @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = MpApplication.class)
  15. @TestPropertySource(locations = "classpath:application-dev.yml")
  16. @ActiveProfiles("dev")
  17. public class ChannelServiceTest {
  18. @Autowired
  19. private IChannelService channelService;
  20. @Test
  21. public void testListChannel() {
  22. Channel channel = new Channel();
  23. }
  24. @Test
  25. public void testAddChannel() {
  26. Channel channel = new Channel();
  27. }
  28. @Test
  29. public void testEditChannel() {
  30. Channel channel = new Channel();
  31. }
  32. }