1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2025-01-03 05:00:14 +00:00

Changed TestProxy png image expected size to be between 1500 and 1700.

This commit is contained in:
Pablo Lalloni 2011-11-12 22:00:30 -03:00
parent 11a215ddd0
commit e1cc14c6a3

View File

@ -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);
}
/**