mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
#195: Faster (and correct) test
This commit is contained in:
parent
5c63dd2168
commit
d5a35fa818
@ -319,10 +319,10 @@ public class ResampleOpTestCase {
|
||||
// https://github.com/haraldk/TwelveMonkeys/issues/195
|
||||
@Test
|
||||
public void testAIOOBEWidth() {
|
||||
BufferedImage myImage = new BufferedImage(2832, 2832, BufferedImage.TYPE_INT_ARGB);
|
||||
BufferedImage myImage = new BufferedImage(2832, 283, BufferedImage.TYPE_INT_ARGB);
|
||||
|
||||
for (int i = 145; i > 143; i--) {
|
||||
ResampleOp resampler = new ResampleOp(144, i, ResampleOp.FILTER_LANCZOS);
|
||||
ResampleOp resampler = new ResampleOp(i, 14, ResampleOp.FILTER_LANCZOS);
|
||||
BufferedImage resizedImage = resampler.filter(myImage, null);
|
||||
assertNotNull(resizedImage);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user