packageorg.hongxi.whatsmars.spring.boot.dao;importorg.hongxi.whatsmars.spring.boot.model.User;importorg.junit.Test;importorg.junit.runner.RunWith;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.boot.test.context.SpringBootTest;importorg.springframework.test.context.ActiveProfiles;importorg.springframework.test.context.junit4.SpringRunner;/** * Created by shenhongxi on 2018/2/1. */@RunWith(SpringRunner.class)@SpringBootTest@ActiveProfiles("dev")publicclassUserMapperTest{@AutowiredprivateUserMapperuserMapper;@Testpublicvoidinsert(){assertuserMapper!=null;