@SuppressWarnings("unchecked") @Test public void testHumanPolicyComponentException() { JAXBElement<PolicySetType> mockRoot = Mockito.mock(JAXBElement.class); when(mockRoot.getValue()).thenReturn(null); assertNull(HumanPolicyComponent.DescribePolicy(temp)); }
public static JSONObject DescribePolicy(final File policyFile) { if (LOGGER.isTraceEnabled()) { LOGGER.trace(ENTER); } HumanPolicyComponent.policyFile = policyFile; return humanPolicyLayout(); }
HumanPolicyComponent { public static JSONObject DescribePolicy(final File policyFile) { if (LOGGER.isTraceEnabled()) { LOGGER.trace(ENTER); } HumanPolicyComponent.policyFile = policyFile; return humanPolicyLayout(); } }
HumanPolicyComponent { public static JSONObject DescribePolicy(final File policyFile) { if (LOGGER.isTraceEnabled()) { LOGGER.trace(ENTER); } HumanPolicyComponent.policyFile = policyFile; return humanPolicyLayout(); } private  HumanPolicyComponent(); }
HumanPolicyComponent { public static JSONObject DescribePolicy(final File policyFile) { if (LOGGER.isTraceEnabled()) { LOGGER.trace(ENTER); } HumanPolicyComponent.policyFile = policyFile; return humanPolicyLayout(); } private  HumanPolicyComponent(); static JSONObject DescribePolicy(final File policyFile); }
HumanPolicyComponent { public static JSONObject DescribePolicy(final File policyFile) { if (LOGGER.isTraceEnabled()) { LOGGER.trace(ENTER); } HumanPolicyComponent.policyFile = policyFile; return humanPolicyLayout(); } private  HumanPolicyComponent(); static JSONObject DescribePolicy(final File policyFile); static final String CATEGORY_RECIPIENT_SUBJECT; static final String CATEGORY_RESOURCE; static final String CATEGORY_ACTION; static final String CATEGORY_ACCESS_SUBJECT; static final String ACTION_ID; static final String SUBJECT_ID; static final String RESOURCE_ID; static final String FUNTION_INTEGER_ONE_AND_ONLY; static final String FUNCTION_STRING_ONE_AND_ONLY; static final String FUNCTION_STRING_EQUAL; static final String FUNCTION_STRING_REGEX_MATCH; static final String FUNCTION_STRING_EQUAL_IGNORE; static final String INTEGER_DATATYPE; static final String BOOLEAN_DATATYPE; static final String STRING_DATATYPE; static final String URI_DATATYPE; static final String RULE_VARIABLE; static final String EMPTY_STRING; }