From 0948aeaf880b469293c7260a33480d1c717c50ae Mon Sep 17 00:00:00 2001 From: Hamza Jugon Date: Mon, 25 Nov 2024 13:58:20 +0000 Subject: [PATCH] Update beekeeper to runtime exception --- .../cleanup/service/PagingMetadataCleanupServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));