Skip to content

Commit ec5f624

Browse files
committed
Add unit test for #70
1 parent bf1b2c8 commit ec5f624

File tree

1 file changed

+22
-0
lines changed
  • net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/ui/preferences/br

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package net.sourceforge.pmd.eclipse.ui.preferences.br;
2+
3+
import static org.junit.Assert.assertNotNull;
4+
5+
import org.junit.Test;
6+
7+
import net.sourceforge.pmd.Rule;
8+
import net.sourceforge.pmd.eclipse.ui.IndexedString;
9+
import net.sourceforge.pmd.lang.rule.XPathRule;
10+
11+
public class RuleUIUtilTest {
12+
13+
/**
14+
* There should be no UnsupportedOperationException...
15+
*/
16+
@Test
17+
public void testTndexedPropertyStringFromRule() {
18+
Rule rule = new XPathRule();
19+
IndexedString s = RuleUIUtil.indexedPropertyStringFrom(rule);
20+
assertNotNull(s);
21+
}
22+
}

0 commit comments

Comments
 (0)