Skip to content

Commit e72a5de

Browse files
committed
Use static imports only for JUnit
1 parent f2983c6 commit e72a5de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/imaging/formats/webp/WebPReadTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.apache.commons.imaging.formats.webp;
1818

1919
import static org.junit.jupiter.api.Assertions.assertEquals;
20+
import static org.junit.jupiter.api.Assertions.assertFalse;
2021
import static org.junit.jupiter.api.Assertions.assertNotNull;
2122
import static org.junit.jupiter.api.Assertions.assertThrows;
2223
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -31,7 +32,6 @@
3132
import org.apache.commons.imaging.common.ImageMetadata;
3233
import org.apache.commons.imaging.formats.webp.chunks.WebPChunkIccp;
3334
import org.apache.commons.imaging.internal.Debug;
34-
import org.junit.jupiter.api.Assertions;
3535
import org.junit.jupiter.api.Test;
3636
import org.junit.jupiter.params.ParameterizedTest;
3737
import org.junit.jupiter.params.provider.MethodSource;
@@ -77,7 +77,7 @@ void testRead(final File imageFile) throws Exception {
7777
Debug.debug("imageFile", imageFile);
7878

7979
final ImageMetadata metadata = Imaging.getMetadata(imageFile);
80-
Assertions.assertFalse(metadata instanceof File); // Dummy check to avoid unused warning (it may be null)
80+
assertFalse(metadata instanceof File); // Dummy check to avoid unused warning (it may be null)
8181

8282
final ImageInfo imageInfo = Imaging.getImageInfo(imageFile);
8383
assertNotNull(imageInfo);

0 commit comments

Comments
 (0)