Skip to content

Commit

Permalink
[Issue comixed#211] Remove the addition to the issue count.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Apr 25, 2020
1 parent ce1997b commit f8c0785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ public String getImageURL() {
}

public int getIssueCount() {
// BUG ComicVine returns the issue count - 1 for some reason
return this.issueCount + 1;
return this.issueCount;
}

public String getName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testProcessFirstPage() throws ComicVineAdaptorException {

ScrapingVolume volume = volumes.get(0);
assertEquals("Batman", volume.getName());
assertEquals(717, volume.getIssueCount());
assertEquals(716, volume.getIssueCount());
assertEquals(796, volume.getId());
assertEquals("1940", volume.getStartYear());
assertEquals("DC Comics", volume.getPublisher());
Expand All @@ -79,7 +79,7 @@ public void testProcessLastPage() throws ComicVineAdaptorException {

ScrapingVolume volume = volumes.get(0);
assertEquals("Superman & Batman: World's Finest", volume.getName());
assertEquals(1, volume.getIssueCount());
assertEquals(0, volume.getIssueCount());
assertEquals(55645, volume.getId());
assertEquals("", volume.getStartYear());
assertEquals("", volume.getPublisher());
Expand Down

0 comments on commit f8c0785

Please sign in to comment.