diff --git a/beekeeper-metadata-cleanup/src/test/java/com/expediagroup/beekeeper/metadata/cleanup/service/PagingMetadataCleanupServiceTest.java b/beekeeper-metadata-cleanup/src/test/java/com/expediagroup/beekeeper/metadata/cleanup/service/PagingMetadataCleanupServiceTest.java index 1a14b3f8..00f8a762 100644 --- a/beekeeper-metadata-cleanup/src/test/java/com/expediagroup/beekeeper/metadata/cleanup/service/PagingMetadataCleanupServiceTest.java +++ b/beekeeper-metadata-cleanup/src/test/java/com/expediagroup/beekeeper/metadata/cleanup/service/PagingMetadataCleanupServiceTest.java @@ -235,10 +235,10 @@ public void mixOfAllPaths() { } @Test - void metadataCleanerException() { + public void metadataCleanerException() { Mockito .doNothing() - .doThrow(new BeekeeperException("Error")) + .doThrow(new RuntimeException("Error")) .when(metadataCleaner) .dropTable(Mockito.any(HousekeepingMetadata.class), Mockito.any(HiveClient.class)); @@ -270,7 +270,7 @@ void metadataCleanerException() { } @Test - void invalidPaths() { + public void invalidPaths() { List tables = List .of(createHousekeepingMetadata("table1", "s3://invalid", null, SCHEDULED), createHousekeepingMetadata("table2", "s3://invalid/path", "partition", SCHEDULED));