1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.apache.commons.imaging.formats.xpm;
16
17 import java.io.File;
18 import java.io.IOException;
19 import java.util.List;
20
21 import org.apache.commons.imaging.AbstractImagingTest;
22 import org.apache.commons.imaging.ImagingException;
23
24 public abstract class AbstractXpmTest extends AbstractImagingTest {
25
26 private static final ImageFilter IMAGE_FILTER = AbstractXpmTest::isXpm;
27
28 private static boolean isXpm(final File file) {
29 return file.getName().toLowerCase().endsWith(".xpm");
30 }
31
32 protected List<File> getXpmImages() throws IOException, ImagingException {
33 return getTestImages(IMAGE_FILTER);
34 }
35 }