@@ -203,7 +203,7 @@ public void sameCitationKeyMergeTest() {
203
203
);
204
204
205
205
action .execute ();
206
- assertEquals (1 , mockedMergeEntriesAction .constructed ().size (), "Expected 1 MergeEntriesAction instance but found" );
206
+ assertEquals (1 , mockedMergeEntriesAction .constructed ().size (), "Expected MergeEntriesAction instance not found" );
207
207
}
208
208
}
209
209
@@ -250,7 +250,7 @@ public void sameCitationKeyNoMergePreferenceTest() {
250
250
@ Test
251
251
public void duplicateMergeTest () {
252
252
BibEntry currentEntry = new BibEntry (StandardEntryType .Article )
253
- .withCitationKey ("DIFFERENT CITATION KEY " )
253
+ .withCitationKey ("DIFFERENTCITATIONKEY " )
254
254
.withField (StandardField .AUTHOR , "Foo Bar" )
255
255
.withField (StandardField .TITLE , "First Article" )
256
256
.withField (StandardField .JOURNAL , "International Journal of Something" )
@@ -275,7 +275,7 @@ public void duplicateMergeTest() {
275
275
);
276
276
277
277
action .execute ();
278
- assertEquals (1 , mockedMergeEntriesAction .constructed ().size (), "Expected 1 MergeEntriesAction instance but found" );
278
+ assertEquals (1 , mockedMergeEntriesAction .constructed ().size (), "Expected MergeEntriesAction instance not found" );
279
279
}
280
280
}
281
281
@@ -284,7 +284,7 @@ public void duplicateNoMergePreferenceTest() {
284
284
when (mergeBibFilesIntoCurrentBibPreferences .shouldMergeSameKeyEntries ()).thenReturn (false );
285
285
when (mergeBibFilesIntoCurrentBibPreferences .shouldMergeDuplicateEntries ()).thenReturn (false );
286
286
BibEntry currentEntry = new BibEntry (StandardEntryType .Article )
287
- .withCitationKey ("DIFFERENT CITATION KEY " )
287
+ .withCitationKey ("DIFFERENTCITATIONKEY " )
288
288
.withField (StandardField .AUTHOR , "Foo Bar" )
289
289
.withField (StandardField .TITLE , "First Article" )
290
290
.withField (StandardField .JOURNAL , "International Journal of Something" )
@@ -312,7 +312,7 @@ public void duplicateNoMergePreferenceTest() {
312
312
assertEquals (1 , entries .size (), "Should still have one entry" );
313
313
314
314
BibEntry entry1 = entries .stream ()
315
- .filter (e -> "DIFFERENT CITATION KEY " .equals (e .getCitationKey ().orElse ("" )))
315
+ .filter (e -> "DIFFERENTCITATIONKEY " .equals (e .getCitationKey ().orElse ("" )))
316
316
.findFirst ()
317
317
.orElseThrow (() -> new AssertionError ("Entry 'test1' not found" ));
318
318
0 commit comments