Przeglądaj źródła

Change JUnit @Test expected parameter with ExpectedException @Rule in triangle exercise [Fix #268]

MichaelSpets 9 lat temu
rodzic
commit
4782e3c702

+ 2
- 1
exercises/triangle/src/test/java/TriangleTest.java Wyświetl plik

@@ -1,6 +1,7 @@
1 1
 import org.junit.Test;
2 2
 import org.junit.Ignore;
3
-import org.junit.rules.TestWatcher;
3
+import org.junit.Rule;
4
+import org.junit.rules.ExpectedException;
4 5
 
5 6
 import static org.junit.Assert.assertEquals;
6 7