From 81210a0e0916f21cf0a9e55007df55a6af83df5b Mon Sep 17 00:00:00 2001 From: Jagdish Prajapati Date: Wed, 15 Jan 2025 17:39:26 +0530 Subject: [PATCH] Chaning asseration to call getResult for impossible bucket --- .../practice/two-bucket/src/test/java/TwoBucketTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/practice/two-bucket/src/test/java/TwoBucketTest.java b/exercises/practice/two-bucket/src/test/java/TwoBucketTest.java index ec9278d72..36fbf21d8 100644 --- a/exercises/practice/two-bucket/src/test/java/TwoBucketTest.java +++ b/exercises/practice/two-bucket/src/test/java/TwoBucketTest.java @@ -82,7 +82,7 @@ public void testBucketOneSizeTwoBucketTwoSizeThreeStartWithOne() { public void testReachingGoalIsImpossible() { assertThatExceptionOfType(UnreachableGoalException.class) - .isThrownBy(() -> new TwoBucket(6, 15, 5, "one")) + .isThrownBy(() -> new TwoBucket(6, 15, 5, "one").getResult()) .withMessage("impossible"); } @@ -104,7 +104,7 @@ public void testBucketOneSizeSixBucketTwoSizeFifteenStartWithOne() { public void testGoalLargerThanBothBucketsIsImpossible() { assertThatExceptionOfType(UnreachableGoalException.class) - .isThrownBy(() -> new TwoBucket(5, 7, 8, "one")) + .isThrownBy(() -> new TwoBucket(5, 7, 8, "one").getResult()) .withMessage("impossible"); }