swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

add composition tests

Open fehguy opened this issue 11 years ago • 3 comments

Tests from 1.3 that cover composition & subtypes should be migrated.

  • [ ] converter/JacksonSubTypeModelTest.scala
  • [ ] converter/ParentChildWithParentOverrideTest.scala
  • [ ] converter/SubTypeModelTest.scala
  • [ ] models/ModelInheritenceTest.scala

fehguy avatar Jan 27 '15 06:01 fehguy

  1. JacksonSubTypeModelTest.scala had already been migrated, now it is in ComposiotionTest.scala, it should "read a model with composition"
  2. ParentChildWithParentOverrideTest.scala looks very strange and does not do something comprehended. Has been decided to abandon it.
  3. SubTypeModelTest.scala. Looks like a test for this feature has been implemented during working on #847, see ComposiotionTest.scala, it should "create a model".
  4. ModelInheritenceTest.scala. The functional has to be tested has been removed. Specification has changed and there's no need to test such a term as "extends".

MDoumin avatar May 18 '15 16:05 MDoumin

Can we close this @MDoumin ?

fehguy avatar May 19 '15 21:05 fehguy

@fehguy, yep, I think this can be closed.

MDoumin avatar May 20 '15 09:05 MDoumin