simplify test after PNG compression

This commit is contained in:
Arnaud Roques
2025-09-10 17:02:11 +02:00
parent 430e00674e
commit 0f6551d781
3 changed files with 6 additions and 10 deletions

View File

@@ -30,9 +30,8 @@ public class TestMultipageUml extends WebappTestCase {
); );
// Get the image and verify its size // Get the image and verify its size
byte[] inMemoryImage = getContentAsBytes(conn); byte[] inMemoryImage = getContentAsBytes(conn);
int diagramLen = inMemoryImage.length; // 7525 int diagramLen = inMemoryImage.length;
Assertions.assertTrue(diagramLen > 6000); Assertions.assertTrue(diagramLen > 100);
Assertions.assertTrue(diagramLen < 9000);
} }
/** /**
@@ -52,9 +51,8 @@ public class TestMultipageUml extends WebappTestCase {
); );
// Get the image and verify its size // Get the image and verify its size
byte[] inMemoryImage = getContentAsBytes(conn); byte[] inMemoryImage = getContentAsBytes(conn);
int diagramLen = inMemoryImage.length; // 4196 int diagramLen = inMemoryImage.length;
Assertions.assertTrue(diagramLen > 3000); Assertions.assertTrue(diagramLen > 100);
Assertions.assertTrue(diagramLen < 5000);
} }
/** /**

View File

@@ -32,8 +32,7 @@ public class TestOldProxy extends WebappTestCase {
// Get the image and verify its size (~2000 bytes) // Get the image and verify its size (~2000 bytes)
byte[] inMemoryImage = getContentAsBytes(conn); byte[] inMemoryImage = getContentAsBytes(conn);
int diagramLen = inMemoryImage.length; int diagramLen = inMemoryImage.length;
Assertions.assertTrue(diagramLen > 2000); Assertions.assertTrue(diagramLen > 100);
Assertions.assertTrue(diagramLen < 3000);
} }
/** /**

View File

@@ -32,8 +32,7 @@ public class TestProxy extends WebappTestCase {
// Get the image and verify its size (~2000 bytes) // Get the image and verify its size (~2000 bytes)
byte[] inMemoryImage = getContentAsBytes(conn); byte[] inMemoryImage = getContentAsBytes(conn);
int diagramLen = inMemoryImage.length; int diagramLen = inMemoryImage.length;
Assertions.assertTrue(diagramLen > 2000); Assertions.assertTrue(diagramLen > 100);
Assertions.assertTrue(diagramLen < 3000);
} }
/** /**