File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626import org .junit .jupiter .api .BeforeEach ;
2727import org .junit .jupiter .api .Test ;
2828
29+ import java .util .Map ;
30+
2931import static org .junit .jupiter .api .Assertions .assertEquals ;
3032import static org .junit .jupiter .api .Assertions .assertNotNull ;
3133import static org .junit .jupiter .api .Assertions .assertTrue ;
@@ -114,7 +116,6 @@ public void parseALaW3C() throws Exception {
114116 assertEquals (0 , e0 .getFiles ().size ());
115117 HistoryEntry e1 = result .getHistoryEntries ().get (1 );
116118 assertEquals (revId2 , e1 .getRevision ());
117- // TODO assertEquals(tag1, e1.getTags());
118119 assertEquals (author2 , e1 .getAuthor ());
119120 assertEquals (0 , e1 .getFiles ().size ());
120121 HistoryEntry e2 = result .getHistoryEntries ().get (2 );
@@ -123,5 +124,7 @@ public void parseALaW3C() throws Exception {
123124 assertEquals (0 , e2 .getFiles ().size ());
124125 assertTrue (e2 .getMessage ().contains ("some" ), "Should contain comment of both lines: line 1" );
125126 assertTrue (e2 .getMessage ().contains ("two" ), "Should contain comment of both lines: line 2" );
127+
128+ assertEquals (Map .of (revId2 , tag1 ), result .getTags ());
126129 }
127130}
You can’t perform that action at this time.
0 commit comments