void function ( ) { Configuration . set ( PropertyKey . SECURITY_AUTHENTICATION_TYPE , AuthType . CUSTOM . getAuthName ( ) ) ; Configuration . set ( PropertyKey . SECURITY_LOGIN_USERNAME , "srini_string" ) ; User loc0 = LoginUser . get ( ) ; Assert . assertNotNull ( loc0 ) ; Assert . assertEquals ( "srini_string" , loc0 . getName ( ) ) ; }
tests whether we can get login user with conf in custom mode , when user name is provided by the application through configuration . concode_field_sep ExpectedException mThrown concode_field_sep void before concode_elem_sep void getSimpleLoginUser concode_elem_sep void getCustomLoginUser concode_elem_sep void getCustomLoginUserWhenNotProvidedByApp concode_elem_sep void getSimpleLoginUserWhenNotProvidedByApp concode_elem_sep void after concode_elem_sep void getSimpleLoginUserProvidedByApp concode_elem_sep void securityEnabled concode_elem_sep void getSimpleLoginUserListProvidedByApp