Assert.assertTrue(FileSystems.getDefault().getPathMatcher("glob:**.{txt,sql}").matches(pFile1Txt));
Assert.assertFalse(FileSystems.getDefault().getPathMatcher("glob:**.{html,xml}").matches(pFile1Txt));
// Complex Matches
PathMatcher pm2 = FileSystems.getDefault().getPathMatcher("glob:**/sub/sub[A-F]ile?.{txt,bak}");
Assert.assertFalse(pm2.matches(pFile1Txt));
Assert.assertTrue(pm2.matches(pSubFile1Txt));
}
private static class SuppressedExceptionTest implements AutoCloseable {
private String closeExceptionMsg;