assertThat(patterns.length, is(2));
assertThat(patterns[0].match("org/sonar/Foo"), is(true));
- assertThat(patterns[1].match("javax.Bar"), is(true));
+ assertThat(patterns[1].match("javax/Bar"), is(true));
}
}
String patternStr = removeSlahesToIgnore(wildcardPattern);
patternStr = StringUtils.replace(patternStr, "**/**", "**");
patternStr = StringUtils.replace(patternStr, "**/", "(&/|)");
- patternStr = StringUtils.replace(patternStr, "/**", "&");
+ patternStr = StringUtils.replace(patternStr, "/**", "/&");
patternStr = StringUtils.replace(patternStr, "**", "&");
StringBuilder sb = new StringBuilder();
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
-import org.junit.Ignore;
import org.junit.Test;
public class WildcardPatternTest {
/**
* See http://jira.codehaus.org/browse/SONAR-2193
*/
- @Ignore
@Test
public void issue2193() {
assertTrue(match("**/app/**", "com.app.Utils", "."));