3 import static org.testng.Assert.assertTrue;
5 import java.io.IOException;
6 import java.nio.file.Paths;
9 import org.testng.annotations.Test;
11 public class FileUtilsTest
13 @Test(groups = "Functional")
14 public void testFindMatchingPaths() throws IOException
16 String expect1 = Paths.get("../jalview/examples/plantfdx.fa")
18 String expect2 = Paths.get("../jalview/examples/plantfdx.features")
20 String expect3 = Paths
21 .get("../jalview/examples/testdata/plantfdx.features")
24 List<String> matches = FileUtils.findMatchingPaths(".*/plant.*\\.f.*",
26 assertTrue(matches.contains(expect1));
27 assertTrue(matches.contains(expect2));
28 assertTrue(matches.contains(expect3));