VIPServiceImplTest.java 884 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.example.cinema.bl;
  2. import com.example.cinema.bl.promotion.VIPService;
  3. import com.example.cinema.data.promotion.CouponMapper;
  4. import com.example.cinema.vo.ResponseVO;
  5. import org.junit.Test;
  6. import org.junit.runner.RunWith;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.boot.test.context.SpringBootTest;
  9. import org.springframework.test.context.junit4.SpringRunner;
  10. /**
  11. * Created by liying on 2019/4/14.
  12. */
  13. @RunWith(SpringRunner.class)
  14. @SpringBootTest
  15. public class VIPServiceImplTest {
  16. @Autowired
  17. VIPService vipService;
  18. @Autowired
  19. CouponMapper couponMapper;
  20. @Test
  21. public void addVIPCard() throws Exception {
  22. couponMapper.deleteCouponUser(6,15);
  23. }
  24. @Test
  25. public void getCardById() throws Exception {
  26. ResponseVO vo=vipService.getCardById(2);
  27. vo.getContent();
  28. }
  29. }