From dc8b62d5bc238895536c586cb33e5d52c40b419f Mon Sep 17 00:00:00 2001 From: "Mars.Ma" Date: Wed, 4 Sep 2019 10:59:23 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-1197=20=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/com/fanruan/api/util/PaintKitTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/fanruan/api/util/PaintKitTest.java b/src/test/java/com/fanruan/api/util/PaintKitTest.java index 33e2c17..69acc07 100644 --- a/src/test/java/com/fanruan/api/util/PaintKitTest.java +++ b/src/test/java/com/fanruan/api/util/PaintKitTest.java @@ -2,19 +2,19 @@ package com.fanruan.api.util; import com.fanruan.api.report.PaintKit; import com.fr.base.Style; -import com.fr.plugin.present.fun.StarPainter; import org.junit.Assert; import org.junit.Test; import java.awt.*; +import java.awt.image.BufferedImage; public class PaintKitTest { @Test public void value2Image() { - StarPainter star = new StarPainter(1); + BufferedImage bi = new BufferedImage(40, 50, BufferedImage.TYPE_BYTE_GRAY); Style style = Style.getInstance(); - Image image = PaintKit.value2Image(star, 1, style, 30, 50); + Image image = PaintKit.value2Image(bi, 1, style, 30, 50); Assert.assertEquals(30, image.getWidth(null)); Assert.assertEquals(50, image.getHeight(null)); }