Search in sources :

Example 6 with VXGroupGroup

use of org.apache.ranger.view.VXGroupGroup in project ranger by apache.

the class TestXUserREST method test33createXGroupGroup.

@Test
public void test33createXGroupGroup() {
    VXGroupGroup compareTestVXGroup = createVXGroupGroup();
    Mockito.when(xUserMgr.createXGroupGroup(compareTestVXGroup)).thenReturn(compareTestVXGroup);
    VXGroupGroup retVxGroup = xUserRest.createXGroupGroup(compareTestVXGroup);
    assertNotNull(retVxGroup);
    assertEquals(compareTestVXGroup.getClass(), retVxGroup.getClass());
    assertEquals(compareTestVXGroup.getId(), retVxGroup.getId());
    Mockito.verify(xUserMgr).createXGroupGroup(compareTestVXGroup);
}
Also used : VXGroupGroup(org.apache.ranger.view.VXGroupGroup) Test(org.junit.Test)

Aggregations

VXGroupGroup (org.apache.ranger.view.VXGroupGroup)6 Test (org.junit.Test)4 ArrayList (java.util.ArrayList)2 VXGroupGroupList (org.apache.ranger.view.VXGroupGroupList)2 Date (java.util.Date)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 SearchCriteria (org.apache.ranger.common.SearchCriteria)1 SortField (org.apache.ranger.common.SortField)1