KerberosServerAction extends AbstractServerAction { protected static String getCommandParameterValue(Map<String, String> commandParameters, String propertyName) { return ((commandParameters == null) || (propertyName == null)) ? null : commandParameters.get(propertyName); }   static final String AUTHENTICATED_USER_NAME; static final String DATA_DIRECTORY; static final String DEFAULT_REALM; static final String SERVICE_COMPONENT_FILTER; static final String HOST_FILTER; static final String IDENTITY_FILTER; static final String KDC_TYPE; static final String UPDATE_CONFIGURATIONS; static final String UPDATE_CONFIGURATION_NOTE; static final String DATA_DIRECTORY_PREFIX; static final String KEYTAB_CONTENT_BASE64; static final String REGENERATE_ALL; static final String INCLUDE_AMBARI_IDENTITY; }
@Test public void testGetCommandParameterValueStatic() throws Exception { Assert.assertNull(KerberosServerAction.getCommandParameterValue(commandParams, "nonexistingvalue")); Assert.assertEquals("REALM.COM", KerberosServerAction.getCommandParameterValue(commandParams, KerberosServerAction.DEFAULT_REALM)); }