24
24
import com .cloudbees .plugins .credentials .domains .DomainSpecification ;
25
25
import com .cloudbees .plugins .credentials .domains .HostnameSpecification ;
26
26
import com .cloudbees .plugins .credentials .impl .UsernamePasswordCredentialsImpl ;
27
+ import hudson .model .Descriptor .FormException ;
27
28
import hudson .model .FreeStyleProject ;
28
29
import hudson .model .Job ;
29
30
import hudson .plugins .jira .model .JiraIssue ;
@@ -62,7 +63,7 @@ public void init() throws MalformedURLException {
62
63
}
63
64
64
65
@ Test
65
- public void createSessionWithProvidedCredentials () {
66
+ public void createSessionWithProvidedCredentials () throws FormException {
66
67
JiraSite site = new JiraSite (
67
68
validPrimaryUrl ,
68
69
null ,
@@ -82,7 +83,7 @@ public void createSessionWithProvidedCredentials() {
82
83
83
84
@ Test
84
85
@ Issue ("JENKINS-64083" )
85
- public void createSessionWithGlobalCredentials () {
86
+ public void createSessionWithGlobalCredentials () throws FormException {
86
87
JiraSite site = new JiraSite (
87
88
validPrimaryUrl ,
88
89
null ,
@@ -101,7 +102,7 @@ public void createSessionWithGlobalCredentials() {
101
102
}
102
103
103
104
@ Test
104
- public void createSessionReturnsNullIfCredentialsIsNull () {
105
+ public void createSessionReturnsNullIfCredentialsIsNull () throws FormException {
105
106
JiraSite site = new JiraSite (
106
107
validPrimaryUrl ,
107
108
null ,
@@ -120,7 +121,7 @@ public void createSessionReturnsNullIfCredentialsIsNull() {
120
121
}
121
122
122
123
@ Test
123
- public void deserializeMigrateCredentials () throws MalformedURLException {
124
+ public void deserializeMigrateCredentials () throws MalformedURLException , FormException {
124
125
JiraSiteOld old = new JiraSiteOld (
125
126
validPrimaryUrl , null , ANY_USER , ANY_PASSWORD , false , false , null , false , null , null , true );
126
127
@@ -153,7 +154,7 @@ public void deserializeMigrateCredentials() throws MalformedURLException {
153
154
}
154
155
155
156
@ Test
156
- public void deserializeNormal () throws IOException {
157
+ public void deserializeNormal () throws IOException , FormException {
157
158
Domain domain = new Domain (
158
159
"example" ,
159
160
"test domain" ,
@@ -207,7 +208,8 @@ private static class JiraSiteOld extends JiraSite {
207
208
boolean updateJiraIssueForAllStatus ,
208
209
String groupVisibility ,
209
210
String roleVisibility ,
210
- boolean useHTTPAuth ) {
211
+ boolean useHTTPAuth )
212
+ throws FormException {
211
213
super (
212
214
url ,
213
215
alternativeUrl ,
@@ -226,7 +228,7 @@ private static class JiraSiteOld extends JiraSite {
226
228
227
229
@ Test
228
230
@ WithoutJenkins
229
- public void alternativeURLNotNull () {
231
+ public void alternativeURLNotNull () throws FormException {
230
232
JiraSite site = new JiraSite (
231
233
validPrimaryUrl ,
232
234
exampleOrg ,
0 commit comments