* @author Stephen Molitor
*/
public class NameMatchesComponentPointcutTestCase extends TestCase {
public void testPicks() throws Exception {
ComponentPointcut cut1 = new NameMatchesComponentPointcut("^foo$");
assertTrue(cut1.picks("foo"));
assertFalse(cut1.picks("barfoo"));
assertFalse(cut1.picks("foobar"));
ComponentPointcut cut2 = new NameMatchesComponentPointcut("foo*");
assertTrue(cut2.picks("foo"));
assertTrue(cut2.picks("barfoo"));
assertTrue(cut2.picks("foobar"));
}