Search in sources :

Example 6 with PmphPermission

use of com.bc.pmpheep.back.po.PmphPermission in project pmph by BCSquad.

the class PmphPermissionServiceTest method testGet.

@Test
@Rollback(Const.ISROLLBACK)
public void testGet() {
    pmphPermissionService.addPmphPermission(pmphPermission);
    PmphPermission pp = pmphPermissionService.get(pmphPermission.getId());
    Assert.assertNotNull("获取数据", pp);
}
Also used : PmphPermission(com.bc.pmpheep.back.po.PmphPermission) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

PmphPermission (com.bc.pmpheep.back.po.PmphPermission)6 BaseTest (com.bc.pmpheep.test.BaseTest)3 Test (org.junit.Test)3 Rollback (org.springframework.test.annotation.Rollback)3 PmphUser (com.bc.pmpheep.back.po.PmphUser)2 LogDetail (com.bc.pmpheep.annotation.LogDetail)1 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 AuthenticationException (org.apache.shiro.authc.AuthenticationException)1 SimpleAuthorizationInfo (org.apache.shiro.authz.SimpleAuthorizationInfo)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1