Migrate test asserts
[yangtools.git] / common / mockito-configuration / src / test / java / org / mockito / configuration / DefaultAnswerTest.java
index c2019ed67c187b2d1f370fb881189b4089e3db81..a478dc1b6fc73db0dabc8b81ecc5a4b90f2d2306 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.mockito.configuration;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
 
 import java.io.Closeable;
 import java.io.IOException;
@@ -16,18 +17,14 @@ import org.junit.Test;
 import org.mockito.Mockito;
 
 public class DefaultAnswerTest {
-
-       @Test
-       public void testAnswering() throws IOException {
-               Closeable mock = Mockito.mock(Closeable.class);
-               try {
-                       mock.close();
-                       fail();
-               } catch (UnstubbedMethodException e) {
-                       assertEquals("closeable.close(); was not stubbed", e.getMessage());
-               }
-       }
-
-
-
+    @Test
+    public void testAnswering() throws IOException {
+        Closeable mock = Mockito.mock(Closeable.class);
+        try {
+            mock.close();
+            fail();
+        } catch (UnstubbedMethodException e) {
+            assertEquals("closeable.close(); was not stubbed", e.getMessage());
+        }
+    }
 }