@@ -0,0 +1,997 @@
+%0Apackage working;%0A%0Aimport static java.time.Duration.ofMillis;%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0Aimport static org.junit.jupiter.api.Assertions.assertThrows;%0Aimport static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;%0A%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport demo.Calculator;%0A%0A@DisplayName(%22Calculator Unit Tests%22)%0Aclass CalculatorTests %7B%0A%0A%09private final Calculator calculator = new Calculator();%0A%0A%09@Test%0A%09@DisplayName(%22%E2%9E%95%22)%0A%09void add() %7B%0A%09%09assertEquals(5, calculator.add(2, 3), () -%3E %222 + 3 = %22 + (2 + 3));%0A%09%7D%0A%0A%09@Test%0A%09@DisplayName(%22n %E2%9E%97 0 %E2%86%92 ArithmeticException%22)%0A%09void divideByZero() %7B%0A%09%09Exception exception = assertThrows(ArithmeticException.class, () -%3E calculator.divide(1, 0));%0A%09%09assertEquals(%22/ by zero%22, exception.getMessage());%0A%09%7D%0A%0A%09@Test%0A%09@DisplayName(%22Ensure Fibonacci computation is 'fast enough'%22)%0A%09void fibonacci() %7B%0A%09%09assertTimeoutPreemptively(ofMillis(1000), () -%3E calculator.fibonacci(30));%0A%09%7D%0A%0A%7D%0A

Introduce simplified CalculatorTests