Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loki666 committed Sep 12, 2019
1 parent 5ef7c39 commit b1957ea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ repositories {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"

testImplementation "org.junit.jupiter:junit-jupiter:5.5.2"
}

compileKotlin {
Expand All @@ -21,6 +23,13 @@ compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

Properties properties = new Properties()
File file = rootProject.file('local.properties')
if (file.exists()) {
Expand Down
14 changes: 14 additions & 0 deletions src/test/kotlin/net/volcanomobile/weservsdk/WeservTests.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package net.volcanomobile.weservsdk

import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test

class WeservTests {

@Test
fun `no Url throws exception`() {
Assertions.assertThrows(IllegalArgumentException::class.java) {
weserv { }
}
}
}

0 comments on commit b1957ea

Please sign in to comment.