assertTrue(cut.picks(Bar.class));
assertFalse(cut.picks(org.nanocontainer.aop.Dao.class));
}
public void testClassPointcutIntersection() {
ClassPointcut a = cuts.union(cuts.oneClass(Foo.class), cuts.oneClass(Bar.class));
ClassPointcut b = cuts.union(cuts.oneClass(Foo.class), cuts.oneClass(FooBar.class));
ClassPointcut c = cuts.intersection(a, b);
assertTrue(c.picks(Foo.class));
assertFalse(c.picks(Bar.class));
assertFalse(c.picks(FooBar.class));
}