1414package org .eclipse .search .core .tests ;
1515
1616
17- import static org .junit .Assert .assertEquals ;
18- import static org .junit .Assert .assertFalse ;
19- import static org .junit .Assert .assertSame ;
20- import static org .junit .Assert .assertTrue ;
2117
22- import org .junit .Test ;
18+
19+ import static org .junit .jupiter .api .Assertions .assertEquals ;
20+ import static org .junit .jupiter .api .Assertions .assertFalse ;
21+ import static org .junit .jupiter .api .Assertions .assertSame ;
22+ import static org .junit .jupiter .api .Assertions .assertTrue ;
23+
24+ import org .junit .jupiter .api .Test ;
2325
2426import org .eclipse .search .ui .ISearchQuery ;
2527import org .eclipse .search .ui .text .AbstractTextSearchResult ;
@@ -60,9 +62,9 @@ public void testAddMatchDifferentStart() {
6062 Match match3 = new Match (object , 0 , 2 );
6163 result .addMatch (match3 );
6264 Match [] matches = result .getMatches (object );
63- assertSame (" matches[0]" , matches [0 ], match3 );
64- assertSame (" matches[1]" , matches [1 ], match2 );
65- assertSame (" matches[2]" , matches [2 ], match1 );
65+ assertSame (matches [0 ], match3 , " matches[0]" );
66+ assertSame (matches [1 ], match2 , " matches[1]" );
67+ assertSame (matches [2 ], match1 , " matches[2]" );
6668 }
6769
6870 @ Test
@@ -80,9 +82,9 @@ public void testAddMatchDifferentStartInOrder() {
8082 Match match3 = new Match (object , 2 , 2 );
8183 result .addMatch (match3 );
8284 Match [] matches = result .getMatches (object );
83- assertSame (" matches[0]" , matches [0 ], match1 );
84- assertSame (" matches[1]" , matches [1 ], match2 );
85- assertSame (" matches[2]" , matches [2 ], match3 );
85+ assertSame (matches [0 ], match1 , " matches[0]" );
86+ assertSame (matches [1 ], match2 , " matches[1]" );
87+ assertSame (matches [2 ], match3 , " matches[2]" );
8688 }
8789
8890 @ Test
@@ -98,8 +100,8 @@ public void testAddMatchDifferentLength() {
98100 Match match2 = new Match (object , 1 , 0 );
99101 result .addMatch (match2 );
100102 Match [] matches = result .getMatches (object );
101- assertSame (" matches[0]" , matches [0 ], match2 );
102- assertSame (" matches[1]" , matches [1 ], match1 );
103+ assertSame (matches [0 ], match2 , " matches[0]" );
104+ assertSame (matches [1 ], match1 , " matches[1]" );
103105 }
104106
105107 @ Test
0 commit comments