private void assertCommon(DBAuditMetadataLogEntity amle, String allowedExcepted, String operationExcepted, String operationTextExcepted, String databaseNameExcepted, String tableNameExcepted, String resourcePathExcepted, String objectTypeExcepted) { 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(tableNameExcepted, amle.getTableName()); assertEquals(databaseNameExcepted, amle.getDatabaseName()); assertEquals(resourcePathExcepted, amle.getResourcePath()); assertEquals(objectTypeExcepted, amle.getObjectType()); }
private void assertCommon(DBAuditMetadataLogEntity amle, String allowedExcepted, String operationExcepted, String operationTextExcepted, String databaseNameExcepted, String tableNameExcepted, String resourcePathExcepted, String objectTypeExcepted) { 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(tableNameExcepted, amle.getTableName()); assertEquals(databaseNameExcepted, amle.getDatabaseName()); assertEquals(resourcePathExcepted, amle.getResourcePath()); assertEquals(objectTypeExcepted, amle.getObjectType()); }