We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23a7669 commit 285c7f6Copy full SHA for 285c7f6
src/test/java/de/codescape/jira/plugins/multiplesubtasks/model/CustomFieldsTest.java
@@ -5,6 +5,7 @@
5
import static org.hamcrest.MatcherAssert.assertThat;
6
import static org.hamcrest.Matchers.equalTo;
7
import static org.hamcrest.Matchers.is;
8
+import static org.junit.Assert.fail;
9
10
public class CustomFieldsTest {
11
@@ -32,4 +33,10 @@ public void extractCustomFieldNameForStringWithEscapedColonValue() {
32
33
assertThat(result, is(equalTo("This:is:a:field")));
34
}
35
36
+ @Test(expected = SyntaxFormatException.class)
37
+ public void extractCustomFieldNameForInvalidInput() {
38
+ CustomFields.extractCustomFieldName("CUSTOMFIELD(ILLEGAL)");
39
+ fail();
40
+ }
41
+
42
0 commit comments