Skip to content

Commit b7a876c

Browse files
committed
check authors
1 parent 55b2af7 commit b7a876c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.opengrok.indexer.util.Executor;
3939
import org.opengrok.indexer.util.IOUtils;
4040
import org.opengrok.indexer.util.TestRepository;
41+
import org.opengrok.indexer.web.Util;
4142

4243
import java.io.File;
4344
import java.io.IOException;
@@ -467,6 +468,7 @@ void testAnnotationPositive(Triple<String, List<String>, List<String>> triple) t
467468
assertFalse(relevantEntries.isEmpty());
468469
for (HistoryEntry entry : relevantEntries) {
469470
assertEquals(entry.getDescription(), annotation.getDesc(entry.getRevision()));
471+
assertTrue(annotation.getAuthors().contains(Util.getEmail(entry.getAuthor())));
470472
}
471473
}
472474

0 commit comments

Comments
 (0)