Search in sources :

Example 6 with VXCredentialStore

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

the class TestAssetREST method testCreateXCredentialStore.

@Test
public void testCreateXCredentialStore() {
    VXCredentialStore vXCredentialStore = vXCredentialStore();
    Mockito.when(assetMgr.createXCredentialStore(vXCredentialStore)).thenReturn(vXCredentialStore);
    VXCredentialStore actualvXCredentialStore = assetREST.createXCredentialStore(vXCredentialStore);
    Assert.assertNotNull(actualvXCredentialStore);
    Assert.assertEquals(vXCredentialStore, actualvXCredentialStore);
    Mockito.verify(assetMgr).createXCredentialStore(vXCredentialStore);
}
Also used : VXCredentialStore(org.apache.ranger.view.VXCredentialStore) Test(org.junit.Test)

Aggregations

VXCredentialStore (org.apache.ranger.view.VXCredentialStore)6 Test (org.junit.Test)4 VXCredentialStoreList (org.apache.ranger.view.VXCredentialStoreList)2 ArrayList (java.util.ArrayList)1 SearchCriteria (org.apache.ranger.common.SearchCriteria)1 SortField (org.apache.ranger.common.SortField)1