assertFalse(matcher.isSatisfiedBy(path));
}
@Test public void testPartialMatch() {
Spec<RelativePath> matcher;
RelativePath path;
matcher = new NameOnlyPatternMatcher(true, true, "fred");
path = new RelativePath(true, "fred");
assertTrue(matcher.isSatisfiedBy(path));
path = new RelativePath(false, "subdir");
assertTrue(matcher.isSatisfiedBy(path));
matcher = new NameOnlyPatternMatcher(false, true, "fred");
path = new RelativePath(true, "fred");
assertTrue(matcher.isSatisfiedBy(path));
path = new RelativePath(false, "subdir");
assertFalse(matcher.isSatisfiedBy(path));
}