From e5b6bda4eafe62ed1a6ce3b951bd370b846ce8da Mon Sep 17 00:00:00 2001 From: AbdulRehman Faraj Date: Mon, 4 Dec 2023 19:58:24 +0000 Subject: [PATCH] Refactored deprecated Constraints constructor and added extra null check for the QPT map --- .../athena/connectors/neptune/NeptuneMetadataHandlerTest.java | 1 + .../athena/connectors/neptune/NeptuneRecordHandlerTest.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneMetadataHandlerTest.java b/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneMetadataHandlerTest.java index 9a4eb31a77..16e6ae0f30 100644 --- a/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneMetadataHandlerTest.java +++ b/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneMetadataHandlerTest.java @@ -53,6 +53,7 @@ import static org.junit.Assert.*; +import static com.amazonaws.athena.connector.lambda.domain.predicate.Constraints.DEFAULT_NO_LIMIT; import static com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest.UNLIMITED_PAGE_SIZE_VALUE; import static org.mockito.ArgumentMatchers.nullable; import static org.mockito.Mockito.mock; diff --git a/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneRecordHandlerTest.java b/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneRecordHandlerTest.java index 54f866e4a8..5f4ed5ea24 100644 --- a/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneRecordHandlerTest.java +++ b/athena-neptune/src/test/java/com/amazonaws/athena/connectors/neptune/NeptuneRecordHandlerTest.java @@ -20,7 +20,6 @@ package com.amazonaws.athena.connectors.neptune; import static com.amazonaws.athena.connector.lambda.domain.predicate.Constraints.DEFAULT_NO_LIMIT; - import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.mockito.ArgumentMatchers.any;