Skip to content

Commit 68fe728

Browse files
committed
refactored unit tests.
1 parent bc6fd5e commit 68fe728

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

athena-vertica/src/test/java/com/amazonaws/athena/connectors/vertica/VerticaMetadataHandlerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ public void setUp() throws Exception
156156
Mockito.when(this.jdbcConnectionFactory.getConnection(nullable(CredentialsProvider.class))).thenReturn(this.connection);
157157
this.verticaMetadataHandler = new VerticaMetadataHandler(databaseConnectionConfig, this.jdbcConnectionFactory,
158158
com.google.common.collect.ImmutableMap.of(), amazonS3, verticaSchemaUtils);
159-
verticaMetadataHandlerMocked = Mockito.spy(this.verticaMetadataHandler);
160159
this.allocator = new BlockAllocatorImpl();
161160
this.databaseMetaData = this.connection.getMetaData();
162161
verticaMetadataHandlerMocked = Mockito.spy(this.verticaMetadataHandler);
@@ -310,7 +309,7 @@ public void getPartitions() throws Exception {
310309
ImmutableList.of(Range.equal(allocator, new ArrowType.FloatingPoint(org.apache.arrow.vector.types.FloatingPointPrecision.DOUBLE), 3.14159)), false));
311310
constraintsMap.put("decimal_col", SortedRangeSet.copyOf(new ArrowType.Decimal(10, 2, 128),
312311
ImmutableList.of(Range.equal(allocator, new ArrowType.Decimal(10, 2, 128), new BigDecimal("123.45"))), false));
313-
constraintsMap.put("varchar_col", SortedRangeSet.copyOf(new ArrowType.Utf8(), // No changes needed
312+
constraintsMap.put("varchar_col", SortedRangeSet.copyOf(new ArrowType.Utf8(),
314313
ImmutableList.of(Range.equal(allocator, new ArrowType.Utf8(), "test")), false));
315314

316315
String[] schema = {"TABLE_SCHEM", "TABLE_NAME", "COLUMN_NAME", "TYPE_NAME"};

0 commit comments

Comments
 (0)