void function ( HiveConf arg0 ) { Hive loc0 = Mockito . mock ( Hive . class ) ; Mockito . when ( loc0 . getMSC ( ) ) . thenReturn ( null ) ; Mockito . when ( loc0 . getConf ( ) ) . thenReturn ( arg0 ) ; Hive . set ( loc0 ) ; }
get a mocked hive object that does not create a real meta store client object this gets rid of the datanucleus initializtion which makes it easier to run test from ides concode_field_sep String username concode_field_sep HiveAuthorizer createHiveAuthorizer concode_elem_sep void testSessionDefaultUser concode_elem_sep void setup concode_elem_sep void testSessionConstructorUser concode_elem_sep HiveConf getAuthV2HiveConf