Skip to content

Commit c80cc19

Browse files
author
Vladimir Kotal
committed
fix TODO
1 parent 450c31b commit c80cc19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/CVSHistoryParserTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import org.junit.jupiter.api.BeforeEach;
2727
import org.junit.jupiter.api.Test;
2828

29+
import java.util.Map;
30+
2931
import static org.junit.jupiter.api.Assertions.assertEquals;
3032
import static org.junit.jupiter.api.Assertions.assertNotNull;
3133
import 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
}

0 commit comments

Comments
 (0)