Skip to content

Commit

Permalink
DownloaderTest: Cover all three suppressed download exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank.viernau@here.com>
  • Loading branch information
fviernau authored and sschuberth committed Mar 14, 2019
1 parent 81c2ac2 commit cefd5e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions downloader/src/funTest/kotlin/DownloaderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ class DownloaderTest : StringSpec() {
}

exception.suppressed.size shouldBe 3
exception.suppressed.get(0)!!.message shouldBe "No VCS URL provided for 'Maven:junit:junit:4.12'. " +
"Please define the \"connection\" tag within the \"scm\" tag in the POM file," +
" see: http://maven.apache.org/pom.html#SCM"
exception.suppressed.get(1)!!.message shouldBe "Source artifact does not match expected SHA-1 hash " +
"'0123456789abcdef0123456789abcdef01234567'."
exception.suppressed.get(2)!!.message shouldBe "Binary artifact URL for 'Maven:junit:junit:4.12' is empty."
}

"Falls back to downloading source package when download from VCS fails".config(tags = setOf(ExpensiveTag)) {
Expand Down

0 comments on commit cefd5e4

Please sign in to comment.