From 946ba0f500472315a8000fe355174eb8edc30a5c Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Thu, 3 Oct 2019 21:59:30 +0200 Subject: [PATCH] api: Fix RectangleUnionTest --- .../net/runelite/api/geometry/RectangleUnionTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runelite-api/src/test/java/net/runelite/api/geometry/RectangleUnionTest.java b/runelite-api/src/test/java/net/runelite/api/geometry/RectangleUnionTest.java index f8d714180b..df678b350a 100644 --- a/runelite-api/src/test/java/net/runelite/api/geometry/RectangleUnionTest.java +++ b/runelite-api/src/test/java/net/runelite/api/geometry/RectangleUnionTest.java @@ -34,17 +34,16 @@ import java.util.ArrayList; import java.util.List; import java.util.Random; import javax.imageio.ImageIO; -import lombok.extern.slf4j.Slf4j; import org.junit.Assert; +import org.junit.Test; -@Slf4j public class RectangleUnionTest { private static final int ITERATIONS = 100; private static final int WIDTH = 1000; private static final int MAX_RECTS = 50; - // @Test + @Test public void test() throws IOException { for (int count = 1; count < MAX_RECTS; count++) @@ -53,7 +52,7 @@ public class RectangleUnionTest { Random rand = new Random(count << 16 | r); String id = count + "rects_iteration" + r; - log.info(id); + BufferedImage wanted = new BufferedImage(WIDTH, WIDTH, BufferedImage.TYPE_BYTE_BINARY); BufferedImage got = new BufferedImage(WIDTH, WIDTH, BufferedImage.TYPE_BYTE_BINARY); @@ -83,7 +82,6 @@ public class RectangleUnionTest while (y1 >= y2); RectangleUnion.Rectangle rect = new RectangleUnion.Rectangle(x1, y1, x2, y2); - log.trace("{}", rect); rects.add(rect); wg.fillRect(x1, y1, x2 - x1, y2 - y1);