use of org.jetbrains.osgi.jps.model.LibraryBundlificationRule in project intellij-plugins by JetBrains.
the class LibraryBundlificationRuleTest method testValidation.
@Test
public void testValidation() throws Exception {
LibraryBundlificationRule rule = new LibraryBundlificationRule();
rule.validate();
rule.setRuleRegex("lib[Jj");
try {
rule.validate();
fail();
} catch (IllegalArgumentException e) {
}
rule.setRuleRegex(".*");
rule.setAdditionalProperties("\\u1wtf");
try {
rule.validate();
fail();
} catch (IllegalArgumentException e) {
}
}
Aggregations