package com.example.cinema.bl; import com.example.cinema.vo.VIPCardForm; import com.example.cinema.vo.ResponseVO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; /** * Created by liying on 2019/4/14. */ @RunWith(SpringRunner.class) @SpringBootTest public class VIPServiceImplTest { @Autowired VIPService vipService; @Test public void addVIPCard() throws Exception { VIPCardForm vipCardForm=new VIPCardForm(); vipCardForm.setUserId(13); vipCardForm.setAmount(300); } @Test public void getCardById() throws Exception { ResponseVO vo=vipService.getCardById(2); vo.getContent(); } }