File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
src/test/java/net/sourceforge/plantuml/servlet Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ public void testPngIndexPage() throws IOException {
3030 );
3131 // Get the image and verify its size
3232 byte [] inMemoryImage = getContentAsBytes (conn );
33- int diagramLen = inMemoryImage .length ; // 7525
34- Assertions .assertTrue (diagramLen > 6000 );
35- Assertions .assertTrue (diagramLen < 9000 );
33+ int diagramLen = inMemoryImage .length ;
34+ Assertions .assertTrue (diagramLen > 100 );
3635 }
3736
3837 /**
@@ -52,9 +51,8 @@ public void testPngIndexPageNoIndex() throws IOException {
5251 );
5352 // Get the image and verify its size
5453 byte [] inMemoryImage = getContentAsBytes (conn );
55- int diagramLen = inMemoryImage .length ; // 4196
56- Assertions .assertTrue (diagramLen > 3000 );
57- Assertions .assertTrue (diagramLen < 5000 );
54+ int diagramLen = inMemoryImage .length ;
55+ Assertions .assertTrue (diagramLen > 100 );
5856 }
5957
6058 /**
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ public void testDefaultProxy() throws IOException {
3232 // Get the image and verify its size (~2000 bytes)
3333 byte [] inMemoryImage = getContentAsBytes (conn );
3434 int diagramLen = inMemoryImage .length ;
35- Assertions .assertTrue (diagramLen > 2000 );
36- Assertions .assertTrue (diagramLen < 3000 );
35+ Assertions .assertTrue (diagramLen > 100 );
3736 }
3837
3938 /**
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ public void testDefaultProxy() throws IOException {
3232 // Get the image and verify its size (~2000 bytes)
3333 byte [] inMemoryImage = getContentAsBytes (conn );
3434 int diagramLen = inMemoryImage .length ;
35- Assertions .assertTrue (diagramLen > 2000 );
36- Assertions .assertTrue (diagramLen < 3000 );
35+ Assertions .assertTrue (diagramLen > 100 );
3736 }
3837
3938 /**
You can’t perform that action at this time.
0 commit comments