@@ -200,7 +200,7 @@ public void buildSplitSqlWithPartition()
200200 }
201201
202202 @ Test
203- public void testReadWithConstraint () throws Exception {
203+ public void readWithConstraint_WithValidData_ProcessesRows () throws Exception {
204204 Schema schema = SchemaBuilder .newBuilder ()
205205 .addField (FieldBuilder .newBuilder (TEST_ID_COL , Types .MinorType .INT .getType ()).build ())
206206 .addField (FieldBuilder .newBuilder (TEST_NAME_COL , Types .MinorType .VARCHAR .getType ()).build ())
@@ -251,7 +251,7 @@ public void testReadWithConstraint() throws Exception {
251251 }
252252
253253 @ Test
254- public void buildSplitSqlWithOrderBy () throws SQLException {
254+ public void buildSplitSql_WithOrderBy_ReturnsCorrectSql () throws SQLException {
255255 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
256256 SchemaBuilder schemaBuilder = createSchemaWithCommonFields ();
257257 schemaBuilder .addField (FieldBuilder .newBuilder (COL_VALUE , Types .MinorType .FLOAT8 .getType ()).build ());
@@ -281,7 +281,7 @@ public void buildSplitSqlWithOrderBy() throws SQLException {
281281 }
282282
283283 @ Test
284- public void buildSqlWithComplexExpressions () throws SQLException {
284+ public void buildSplitSql_WithComplexExpressions_ReturnsCorrectSql () throws SQLException {
285285 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
286286 SchemaBuilder schemaBuilder = createSchemaWithCommonFields ();
287287 schemaBuilder .addField (FieldBuilder .newBuilder (COL_DOUBLE , Types .MinorType .FLOAT8 .getType ()).build ());
@@ -317,7 +317,7 @@ public void buildSqlWithComplexExpressions() throws SQLException {
317317 }
318318
319319 @ Test
320- public void buildSqlWithValueComparisons () throws SQLException {
320+ public void buildSplitSql_WithValueComparisons_ReturnsCorrectSql () throws SQLException {
321321 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
322322 SchemaBuilder schemaBuilder = createSchemaWithCommonFields ();
323323 schemaBuilder .addField (FieldBuilder .newBuilder (COL_INT , Types .MinorType .INT .getType ()).build ());
@@ -353,7 +353,7 @@ public void buildSqlWithValueComparisons() throws SQLException {
353353 }
354354
355355 @ Test
356- public void testEmptyConstraints () throws SQLException {
356+ public void buildSplitSql_WithEmptyConstraints_ReturnsCorrectSql () throws SQLException {
357357 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
358358 Schema schema = createSchemaWithCommonFields ().build ();
359359 Split split = createMockSplit ();
@@ -376,7 +376,7 @@ public void testEmptyConstraints() throws SQLException {
376376 }
377377
378378 @ Test
379- public void buildSplitSqlWithLimitOffset () throws SQLException {
379+ public void buildSplitSql_WithLimitOffset_ReturnsCorrectSql () throws SQLException {
380380 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
381381 Schema schema = createSchemaWithValueField ().build ();
382382 Split split = createMockSplit ();
@@ -401,7 +401,7 @@ public void buildSplitSqlWithLimitOffset() throws SQLException {
401401 }
402402
403403 @ Test
404- public void buildSqlWithRangeAndInPredicatesTest () throws SQLException {
404+ public void buildSplitSql_WithRangeAndInPredicates_ReturnsCorrectSql () throws SQLException {
405405 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
406406 SchemaBuilder schemaBuilder = createSchemaWithCommonFields ();
407407 schemaBuilder .addField (FieldBuilder .newBuilder (COL_INT , Types .MinorType .INT .getType ()).build ());
@@ -448,7 +448,7 @@ public void buildSqlWithRangeAndInPredicatesTest() throws SQLException {
448448 }
449449
450450 @ Test
451- public void buildSqlWithQueryPassthrough () throws SQLException {
451+ public void buildSplitSql_WithQueryPassthrough_ReturnsCorrectSql () throws SQLException {
452452 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
453453 Schema schema = createSchemaWithCommonFields ().build ();
454454
@@ -475,7 +475,7 @@ public void buildSqlWithQueryPassthrough() throws SQLException {
475475 }
476476
477477 @ Test (expected = AthenaConnectorException .class )
478- public void buildSqlWithInvalidQueryPassthrough () throws SQLException {
478+ public void buildSplitSql_WithInvalidQueryPassthrough_ThrowsAthenaConnectorException () throws SQLException {
479479 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
480480 SchemaBuilder schemaBuilder = createSchemaWithCommonFields ();
481481 schemaBuilder .addField (FieldBuilder .newBuilder (COL_ID , Types .MinorType .INT .getType ()).build ());
@@ -497,7 +497,7 @@ public void buildSqlWithInvalidQueryPassthrough() throws SQLException {
497497 }
498498
499499 @ Test
500- public void buildSqlWithComplexConstraintsAndOrderBy () throws SQLException {
500+ public void buildSplitSql_WithComplexConstraintsAndOrderBy_ReturnsCorrectSql () throws SQLException {
501501 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
502502 SchemaBuilder schemaBuilder = createSchemaWithValueField ();
503503 schemaBuilder .addField (FieldBuilder .newBuilder ("dateCol" , Types .MinorType .DATEDAY .getType ()).build ());
@@ -536,7 +536,7 @@ public void buildSqlWithComplexConstraintsAndOrderBy() throws SQLException {
536536 }
537537
538538 @ Test
539- public void buildSqlWithEmptyConstraintsAndOrderBy () throws SQLException {
539+ public void buildSplitSql_WithEmptyConstraintsAndOrderBy_ReturnsCorrectSql () throws SQLException {
540540 TableName tableName = new TableName (TEST_SCHEMA , TEST_TABLE );
541541 Schema schema = createSchemaWithCommonFields ().build ();
542542 Split split = createMockSplit ();
0 commit comments