Skip to content

Commit 53f6c27

Browse files
committed
Use containsExactly in TestBackgroundHiveSplitLoader
1 parent d21b364 commit 53f6c27

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugin/trino-hive/src/test/java/io/trino/plugin/hive/TestBackgroundHiveSplitLoader.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ public void testPathFilter()
212212
HiveSplitSource hiveSplitSource = hiveSplitSource(backgroundHiveSplitLoader);
213213
backgroundHiveSplitLoader.start(hiveSplitSource);
214214
List<String> paths = drain(hiveSplitSource);
215-
assertThat(paths).hasSize(1);
216-
assertThat(paths.get(0)).isEqualTo(LOCATION.toString());
215+
assertThat(paths).containsExactly(LOCATION.toString());
217216
}
218217

219218
@Test
@@ -249,8 +248,7 @@ public void testPathFilterOneBucketMatchPartitionedTable()
249248
HiveSplitSource hiveSplitSource = hiveSplitSource(backgroundHiveSplitLoader);
250249
backgroundHiveSplitLoader.start(hiveSplitSource);
251250
List<String> paths = drain(hiveSplitSource);
252-
assertThat(paths).hasSize(1);
253-
assertThat(paths.get(0)).isEqualTo(LOCATION.toString());
251+
assertThat(paths).containsExactly(LOCATION.toString());
254252
}
255253

256254
@Test
@@ -276,8 +274,7 @@ public void testPathFilterBucketedPartitionedTable()
276274
HiveSplitSource hiveSplitSource = hiveSplitSource(backgroundHiveSplitLoader);
277275
backgroundHiveSplitLoader.start(hiveSplitSource);
278276
List<String> paths = drain(hiveSplitSource);
279-
assertThat(paths).hasSize(1);
280-
assertThat(paths.get(0)).isEqualTo(LOCATION.toString());
277+
assertThat(paths).containsExactly(LOCATION.toString());
281278
}
282279

283280
@Test

0 commit comments

Comments
 (0)