mirror of
https://github.com/jlengrand/ExtraTestModuleExample.git
synced 2026-03-10 08:21:18 +00:00
21 lines
406 B
Kotlin
21 lines
406 B
Kotlin
package nl.lengrand
|
|
|
|
import org.junit.jupiter.api.Assertions.*
|
|
import org.junit.jupiter.api.Test
|
|
import org.junit.jupiter.api.assertThrows
|
|
import work.socialhub.kbsky.ATProtocolException
|
|
|
|
class GreetingTest {
|
|
@Test
|
|
fun greet() {
|
|
|
|
assertEquals("Hello, you!", Greeting().greet())
|
|
}
|
|
|
|
@Test
|
|
fun connect(){
|
|
assertThrows<ATProtocolException> { Greeting().connect() }
|
|
|
|
}
|
|
|
|
} |