Skip to content

Commit

Permalink
#1275 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jun 3, 2024
1 parent 81f4cdd commit a23a60a
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import net.nemerosa.ontrack.model.structure.NameDescription.Companion.nd
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertTrue

class AutoPromotionPropertyTypeTest {

Expand Down Expand Up @@ -67,14 +67,13 @@ class AutoPromotionPropertyTypeTest {
}

@Test
fun `From client - parsing error`() {
assertFailsWith<AutoPromotionPropertyCannotParseException> {
type.fromClient(
mapOf(
"validationStamps" to "VS1"
).asJson()
)
}
fun `From client - parsing error returns an empty list`() {
val property = type.fromClient(
mapOf(
"validationStamps" to "VS1"
).asJson()
)
assertTrue(property.validationStamps.isEmpty(), "Empty list")
}

@Test
Expand Down

0 comments on commit a23a60a

Please sign in to comment.