Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuri82 committed Oct 28, 2023
1 parent e33442a commit b24840c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ class RestActionBuilderV3Test{
""".trimIndent()


val gene = RestActionBuilderV3.createObjectGeneForDTO(name, dtoSchema, name, RestActionBuilderV3.Options(enableConstraintHandling=enableConstraintHandling)) as ObjectGene
val gene = RestActionBuilderV3.createObjectGeneForDTO(name, dtoSchema, name,
RestActionBuilderV3.Options(enableConstraintHandling=enableConstraintHandling, invalidData = false)) as ObjectGene
assertEquals(name, gene.name)
assertEquals(2, gene.fields.size)

Expand All @@ -400,8 +401,7 @@ class RestActionBuilderV3Test{
assertNotNull(ParamUtil.getValueGene(this!!) is EnumGene<*>)
(ParamUtil.getValueGene(this) as EnumGene<String>).apply {
assertEquals("bar", this.name)
// need to check with Andrea, additional EVOMASTER is added for Enum
assertEquals(4, values.size)
assertEquals(3, values.size)
listOf("ONE","TWO","THREE").forEach { s ->
assertTrue(values.contains(s))
}
Expand Down

0 comments on commit b24840c

Please sign in to comment.