private void assertCommon(GMAuditMetadataLogEntity amle, String allowedExcepted, String operationExcepted, String operationTextExcepted, String objectTypeExcepted, Map<String, String> privilegesExcepted) { assertEquals(ServerConfig.SENTRY_SERVICE_NAME_DEFAULT, amle.getServiceName()); assertEquals(TEST_IP, amle.getIpAddress()); assertEquals(TEST_USER_NAME, amle.getUserName()); assertEquals(TEST_IMPERSONATOR, amle.getImpersonator()); assertEquals(allowedExcepted, amle.getAllowed()); assertEquals(operationExcepted, amle.getOperation()); assertEquals(operationTextExcepted, amle.getOperationText()); assertEquals(objectTypeExcepted, amle.getObjectType()); assertPrivilegesMap(privilegesExcepted, amle.getPrivilegesMap()); }
private void assertCommon(GMAuditMetadataLogEntity amle, String allowedExcepted, String operationExcepted, String operationTextExcepted, String objectTypeExcepted, Map<String, String> privilegesExcepted) { assertEquals(ServerConfig.SENTRY_SERVICE_NAME_DEFAULT, amle.getServiceName()); assertEquals(TEST_IP, amle.getIpAddress()); assertEquals(TEST_USER_NAME, amle.getUserName()); assertEquals(TEST_IMPERSONATOR, amle.getImpersonator()); assertEquals(allowedExcepted, amle.getAllowed()); assertEquals(operationExcepted, amle.getOperation()); assertEquals(operationTextExcepted, amle.getOperationText()); assertEquals(objectTypeExcepted, amle.getObjectType()); assertPrivilegesMap(privilegesExcepted, amle.getPrivilegesMap()); }