From 9ecfae6abbc5a77ffaa805d0c359f82a165e8d2f Mon Sep 17 00:00:00 2001 From: bingor_yhj Date: Sat, 1 Oct 2022 11:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=A6=E5=85=8B=E5=A4=A7=E6=88=98(=E4=B8=80?= =?UTF-8?q?=E6=9C=9F)-=E6=96=B0=E5=A2=9E=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/msb/test/CommonTest.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/com/msb/test/CommonTest.java diff --git a/src/com/msb/test/CommonTest.java b/src/com/msb/test/CommonTest.java new file mode 100644 index 0000000..3387a99 --- /dev/null +++ b/src/com/msb/test/CommonTest.java @@ -0,0 +1,25 @@ +package com.msb.test; + +import org.junit.Assert; +import org.junit.Test; + +import javax.imageio.ImageIO; +import java.awt.image.BufferedImage; +import java.io.File; +import java.io.IOException; + +/** + * @Author bingor + * @Date 2022-10-01 10:48 + * @Description: com.msb.test + * @Version: 1.0 + */ +public class CommonTest { + + @Test + public void testReadImage() throws IOException { + BufferedImage bufferedImage = ImageIO.read(new File("E:\\myfile\\msb_马士兵教育体系\\课程下载的资源\\MCA高级构架师\\73-坦克大战(一期)\\images\\tankD.gif")); + Assert.assertNotNull(bufferedImage); + } + +}