simplify test after PNG compression
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user