Skip to content

Commit

Permalink
chore: test case (refs #182)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Mar 27, 2024
1 parent 1680e3e commit 861a1c7
Show file tree
Hide file tree
Showing 3 changed files with 918 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/se/bjurr/gitchangelog/api/GitChangelogApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import se.bjurr.gitchangelog.api.exceptions.GitChangelogRepositoryException;
import se.bjurr.gitchangelog.internal.integrations.github.GitHubMockInterceptor;
import se.bjurr.gitchangelog.internal.integrations.github.GitHubServiceFactory;
Expand Down Expand Up @@ -93,6 +95,17 @@ public void after() {
mock(null);
}

@Test
public void testIssue182() throws Exception {
final GitChangelogApi given =
gitChangelogApiBuilder() //
.withTemplatePath("changelog-with-unreleased.mustache")
.withFromRevision(ZERO_COMMIT) //
.withToRevision("test/issue-182");

ApprovalsWrapper.verify(given);
}

@Test
public void testThatFirstVersionCanBeGenerated() throws Exception {
final GitChangelogApi given =
Expand Down
Loading

0 comments on commit 861a1c7

Please sign in to comment.