3131
3232import static org .assertj .core .api .Assertions .assertThat ;
3333import static org .assertj .core .api .Assertions .assertThatThrownBy ;
34- import static org .junit .Assert .fail ;
34+ import static org .junit .jupiter . api . Assertions .fail ;
3535import static org .mockito .Mockito .mock ;
3636import static org .mockito .Mockito .when ;
3737
@@ -107,9 +107,9 @@ void test_equals_and_hashCode() {
107107
108108 @ Test
109109 void comments_should_not_be_modifiable () {
110- DefaultIssue issue = new DefaultIssue ().setKey ("AAA" );
110+ DefaultIssue defaultIssue = new DefaultIssue ().setKey ("AAA" );
111111
112- List <DefaultIssueComment > comments = issue .defaultIssueComments ();
112+ List <DefaultIssueComment > comments = defaultIssue .defaultIssueComments ();
113113 assertThat (comments ).isEmpty ();
114114 DefaultIssueComment defaultIssueComment = new DefaultIssueComment ();
115115 try {
@@ -128,42 +128,42 @@ void all_changes_contain_current_change() {
128128 when (issueChangeContext .getExternalUser ()).thenReturn ("toto" );
129129 when (issueChangeContext .getWebhookSource ()).thenReturn ("github" );
130130
131- DefaultIssue issue = new DefaultIssue ()
131+ DefaultIssue defaultIssue = new DefaultIssue ()
132132 .setKey ("AAA" )
133133 .setFieldChange (issueChangeContext , "actionPlan" , "1.0" , "1.1" );
134134
135- assertThat (issue .changes ()).hasSize (1 );
136- FieldDiffs actualDiffs = issue .changes ().iterator ().next ();
135+ assertThat (defaultIssue .changes ()).hasSize (1 );
136+ FieldDiffs actualDiffs = defaultIssue .changes ().iterator ().next ();
137137 assertThat (actualDiffs .externalUser ()).contains (issueChangeContext .getExternalUser ());
138138 assertThat (actualDiffs .webhookSource ()).contains (issueChangeContext .getWebhookSource ());
139139 }
140140
141141 @ Test
142142 void setFieldChange_whenAddingChange_shouldUpdateCurrentChange () {
143143 IssueChangeContext issueChangeContext = mock (IssueChangeContext .class );
144- DefaultIssue issue = new DefaultIssue ().setKey ("AAA" );
144+ DefaultIssue defaultIssue = new DefaultIssue ().setKey ("AAA" );
145145
146- issue .setFieldChange (issueChangeContext , "actionPlan" , "1.0" , "1.1" );
147- assertThat (issue .changes ()).hasSize (1 );
148- FieldDiffs currentChange = issue .currentChange ();
146+ defaultIssue .setFieldChange (issueChangeContext , "actionPlan" , "1.0" , "1.1" );
147+ assertThat (defaultIssue .changes ()).hasSize (1 );
148+ FieldDiffs currentChange = defaultIssue .currentChange ();
149149 assertThat (currentChange ).isNotNull ();
150150 assertThat (currentChange .get ("actionPlan" )).isNotNull ();
151151 assertThat (currentChange .get ("authorLogin" )).isNull ();
152152
153- issue .setFieldChange (issueChangeContext , "authorLogin" , null , "testuser" );
154- assertThat (issue .changes ()).hasSize (1 );
153+ defaultIssue .setFieldChange (issueChangeContext , "authorLogin" , null , "testuser" );
154+ assertThat (defaultIssue .changes ()).hasSize (1 );
155155 assertThat (currentChange .get ("actionPlan" )).isNotNull ();
156156 assertThat (currentChange .get ("authorLogin" )).isNotNull ();
157157 assertThat (currentChange .get ("authorLogin" ).newValue ()).isEqualTo ("testuser" );
158158 }
159159
160160 @ Test
161161 void adding_null_change_has_no_effect () {
162- DefaultIssue issue = new DefaultIssue ();
162+ DefaultIssue defaultIssue = new DefaultIssue ();
163163
164- issue .addChange (null );
164+ defaultIssue .addChange (null );
165165
166- assertThat (issue .changes ()).isEmpty ();
166+ assertThat (defaultIssue .changes ()).isEmpty ();
167167 }
168168
169169 @ Test
0 commit comments