You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2021/12/31 12:21:54 UTC
svn commit: r1896577 - /xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java
Author: ssteiner
Date: Fri Dec 31 12:21:54 2021
New Revision: 1896577
URL: http://svn.apache.org/viewvc?rev=1896577&view=rev
Log:
Fix mockito warnings
Modified:
xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java
Modified: xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java?rev=1896577&r1=1896576&r2=1896577&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java (original)
+++ xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/ps/ImageEncodingHelperTestCase.java Fri Dec 31 12:21:54 2021
@@ -34,8 +34,8 @@ import org.mockito.invocation.Invocation
import org.mockito.stubbing.Answer;
import static org.junit.Assert.assertTrue;
-import static org.mockito.Matchers.anyInt;
-import static org.mockito.Matchers.anyObject;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -140,7 +140,7 @@ public class ImageEncodingHelperTestCase
return null;
}
};
- when(raster.getDataElements(anyInt(), anyInt(), anyInt(), anyInt(), anyObject()))
+ when(raster.getDataElements(anyInt(), anyInt(), anyInt(), anyInt(), any()))
.thenAnswer(ans);
ByteArrayOutputStream optimized = new ByteArrayOutputStream();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org