Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Sep 9, 2024
1 parent 702541d commit b7ec374
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -476,4 +475,18 @@ void testBuildTagListInitial() throws Exception {
expectedTags.add(tagEntry);
assertEquals(expectedTags, tags);
}

@Test
void testBuildTagListOneMore() throws Exception {
MercurialRepository hgRepo = (MercurialRepository) RepositoryFactory.getRepository(repositoryRoot);
assertNotNull(hgRepo);
runHgCommand(repositoryRoot, "tag", "foo");
hgRepo.buildTagList(new File(hgRepo.getDirectoryName()), CommandTimeoutType.INDEXER);
var tags = hgRepo.getTagList();
assertNotNull(tags);
assertEquals(2, tags.size());
Set<TagEntry> expectedTags = Set.of(new MercurialTagEntry(7, "start_of_novel"),
new MercurialTagEntry(9, "foo"));
assertEquals(expectedTags, tags);
}
}

0 comments on commit b7ec374

Please sign in to comment.