package com.example.cinema.blImpl; import com.example.cinema.bl.ScheduleService; 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; import static org.junit.Assert.*; /** * @author fjj * @date 2019/4/21 12:08 AM */ @RunWith(SpringRunner.class) @SpringBootTest public class ScheduleServiceImplTest { @Autowired private ScheduleService scheduleService; @Test public void searchAudienceSchedule() { scheduleService.searchAudienceSchedule(16); } }