package com.lxzn.nc.dao; import com.lxzn.framework.domain.nc.ComponentInfo; import com.lxzn.framework.domain.nc.ext.ComponentExt; import com.lxzn.framework.model.response.CommonJsonTree; import com.lxzn.nc.service.IComponentInfoService; import com.lxzn.nc.service.support.ComponentTreeWrapper; 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 java.util.List; @RunWith(SpringRunner.class) @SpringBootTest public class ComponentInfoMapperTest { @Autowired private ComponentInfoMapper componentInfoMapper; @Autowired private IComponentInfoService componentInfoService; @Test public void testFindExtAll() { List list = componentInfoMapper.getByUserPerms("1254773336467689474"); System.out.println(list); } @Test public void testGetPermsByParentId() { List list = componentInfoMapper.getByParentIdAndUserPerms("1257611309634617345", "1254773336467689474"); System.out.println(list); } @Test public void testGetByParentId() { List list = componentInfoService.getByParentId("1257512491769503745"); list.forEach(System.out::println); } }