diff --git a/src/test/java/io/fp/shapes/ShapesTest.java b/src/test/java/io/fp/shapes/ShapesTest.java index d182cbe882b47955fcf86fdb306c88a46c43e202..46753556e92e407d9d2bb38e8e7fe2273b7231e8 100644 --- a/src/test/java/io/fp/shapes/ShapesTest.java +++ b/src/test/java/io/fp/shapes/ShapesTest.java @@ -1,14 +1,13 @@ package io.fp.shapes; -import org.junit.jupiter.api.Assertions; +import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class ShapesTest { @Test - void testSizeExpetion() { - - Assertions.assertThrows(SizeException.class, () -> { + void testIncorrectCreation() { + assertThrows(SizeException.class, () -> { new RectangleCircle(2, 1, 1); }); }