RangerPolicyService extends RangerPolicyServiceBase<XXPolicy, RangerPolicy> { @Override protected void validateForUpdate(RangerPolicy vObj, XXPolicy entityObj) { } RangerPolicyService(); RangerPolicy getPopulatedViewObject(XXPolicy xPolicy); List<XXTrxLog> getTransactionLog(RangerPolicy vPolicy, int action); List<XXTrxLog> getTransactionLog(RangerPolicy vObj, XXPolicy mObj, RangerPolicy oldPolicy, int action); String restrictIsDenyAllElseLogForMaskingAndRowfilterPolicy(String fieldName, RangerPolicy vObj); static final String POLICY_RESOURCE_CLASS_FIELD_NAME; static final String POLICY_ITEM_CLASS_FIELD_NAME; static final String POLICY_NAME_CLASS_FIELD_NAME; static final String POLICY_DESCRIPTION_CLASS_FIELD_NAME; static final String DENYPOLICY_ITEM_CLASS_FIELD_NAME; static final String ALLOW_EXCEPTIONS_CLASS_FIELD_NAME; static final String DENY_EXCEPTIONS_CLASS_FIELD_NAME; static final String DATAMASK_POLICY_ITEM_CLASS_FIELD_NAME; static final String ROWFILTER_POLICY_ITEM_CLASS_FIELD_NAME; static final String IS_ENABLED_CLASS_FIELD_NAME; static final String IS_AUDIT_ENABLED_CLASS_FIELD_NAME; static final String POLICY_LABELS_CLASS_FIELD_NAME; static final String POLICY_VALIDITYSCHEDULES_CLASS_FIELD_NAME; static final String POLICY_PRIORITY_CLASS_FIELD_NAME; static final String POLICY_CONDITION_CLASS_FIELD_NAME; static final String POLICY_IS_DENY_ALL_ELSE_CLASS_FIELD_NAME; static final String POLICY_ZONE_NAME_CLASS_FIELD_NAME; }
@Test public void test2ValidateForUpdate() { RangerPolicy rangerPolicy = rangerPolicy(); XXPolicy policy = policy(); policyService.validateForUpdate(rangerPolicy, policy); Assert.assertNotNull(rangerPolicy); }