package test;
import com.ym.mec.education.EducationApplication;
import com.ym.mec.education.entity.MusicGroup;
import com.ym.mec.education.service.IMusicGroupService;
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.SpringJUnit4ClassRunner;


@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes={EducationApplication.class, InterFaceTest.class})
public class InterFaceTest {

    @Autowired
    private IMusicGroupService musicGroupService;


    @Test
    public void testCart() throws Exception {

        MusicGroup musicGroup =  musicGroupService.getById(1);
        System.out.println(musicGroup.toString());
    }
}