Skip to content

Commit

Permalink
Update ModelPropertyParserTest.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Feb 1, 2024
1 parent ff3a38d commit 4d9b1b8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ class ModelPropertyParserTest extends AnyFlatSpec with BeforeAndAfterEach with M
val itemSchema = values.asInstanceOf[ArraySchema].getItems
itemSchema shouldBe an[IntegerSchema]
itemSchema.asInstanceOf[IntegerSchema].getFormat shouldBe "int64"
itemSchema.asInstanceOf[IntegerSchema].getRequired shouldBe null
}

it should "process Option[Seq[Option[Long]]] as string" in new PropertiesScope[OptionSeqOptionLong] {
val values = model.value.getProperties().get("values")
values should not be (null)
values shouldBe an[ArraySchema]
values.getRequired shouldBe null
val itemSchema = values.asInstanceOf[ArraySchema].getItems
itemSchema shouldBe an[IntegerSchema]
itemSchema.asInstanceOf[IntegerSchema].getFormat shouldBe "int64"
itemSchema.asInstanceOf[IntegerSchema].getRequired shouldBe null
}

it should "process Option[Model] as Model" in new PropertiesScope[ModelWOptionModel] {
Expand Down

0 comments on commit 4d9b1b8

Please sign in to comment.