From e1cc14c6a31d13a3ff383c4791c461ef8be8b588 Mon Sep 17 00:00:00 2001 From: Pablo Lalloni Date: Sat, 12 Nov 2011 22:00:30 -0300 Subject: [PATCH] Changed TestProxy png image expected size to be between 1500 and 1700. --- src/test/java/net/sourceforge/plantuml/servlet/TestProxy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/sourceforge/plantuml/servlet/TestProxy.java b/src/test/java/net/sourceforge/plantuml/servlet/TestProxy.java index 15ddfa3..2542589 100644 --- a/src/test/java/net/sourceforge/plantuml/servlet/TestProxy.java +++ b/src/test/java/net/sourceforge/plantuml/servlet/TestProxy.java @@ -21,7 +21,7 @@ public class TestProxy extends WebappTestCase { // Analyze response // Verifies the Content-Type header //assertEquals( "Response content type is not PNG", "image/png", response.getContentType()); - // Get the image and verify its size (~1533 bytes) + // Get the image and verify its size (~1600 bytes) InputStream responseStream = response.getInputStream(); ByteArrayOutputStream imageStream = new ByteArrayOutputStream(); byte[] buf = new byte[1024]; @@ -34,7 +34,7 @@ public class TestProxy extends WebappTestCase { byte[] inMemoryImage = imageStream.toByteArray(); int diagramLen = inMemoryImage.length; assertTrue( diagramLen > 1500); - assertTrue( diagramLen < 1600); + assertTrue( diagramLen < 1700); } /**