You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
603 B
Kotlin
28 lines
603 B
Kotlin
package io.provs
|
|
|
|
import io.provs.testconfig.tags.CONTAINERTEST
|
|
import org.junit.jupiter.api.Assertions
|
|
import org.junit.jupiter.api.Tag
|
|
import org.junit.jupiter.api.Test
|
|
|
|
internal class UtilsTest {
|
|
|
|
@Test
|
|
fun test_getCallingMethodName() {
|
|
// when
|
|
val s = getCallingMethodName()
|
|
|
|
// then
|
|
Assertions.assertEquals("test_getCallingMethodName", s)
|
|
}
|
|
|
|
@Test
|
|
@Tag(CONTAINERTEST)
|
|
fun test_docker() {
|
|
// when
|
|
val res = defaultTestContainer().cmd("echo something")
|
|
|
|
// then
|
|
Assertions.assertEquals(true, res.success)
|
|
}
|
|
} |