From 8cf7e83cdc19baeea879d3cd6e9538b9a4e535a5 Mon Sep 17 00:00:00 2001 From: Martin Schmollinger <martin.schmollinger> Date: Wed, 13 Apr 2022 15:04:33 +0200 Subject: [PATCH] Refactored name of test method --- src/test/java/io/fp/shapes/ShapesTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/io/fp/shapes/ShapesTest.java b/src/test/java/io/fp/shapes/ShapesTest.java index d182cbe..4675355 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); }); } -- GitLab