|
5 | 5 |
|
6 | 6 | package io.openapiprocessor.core.writer.java |
7 | 7 |
|
8 | | -import io.kotest.core.datatest.forAll |
9 | 8 | import io.kotest.core.spec.style.StringSpec |
10 | | -import io.kotest.data.row |
| 9 | +import io.kotest.datatest.withData |
11 | 10 | import io.kotest.matchers.shouldBe |
12 | 11 | import io.kotest.matchers.string.shouldBeEmpty |
13 | 12 | import io.mockk.every |
@@ -239,17 +238,19 @@ class JavaDocWriterSpec: StringSpec({ |
239 | 238 | } |
240 | 239 |
|
241 | 240 | "converts property schema description to javadoc comment" { |
| 241 | + data class Type(val dt: DataType) |
| 242 | + |
242 | 243 | val description = "*markdown* description with **text**" |
243 | 244 |
|
244 | | - forAll( |
245 | | - row(IntegerDataType(documentation = Documentation(description = description))), |
246 | | - row(LongDataType(documentation = Documentation(description = description))), |
247 | | - row(FloatDataType(documentation = Documentation(description = description))), |
248 | | - row(DoubleDataType(documentation = Documentation(description = description))), |
249 | | - row(BooleanDataType(documentation = Documentation(description = description))), |
250 | | - row(StringDataType(documentation = Documentation(description = description))), |
251 | | - row(LocalDateDataType(documentation = Documentation(description = description))), |
252 | | - row(OffsetDateTimeDataType(documentation = Documentation(description = description))) |
| 245 | + withData( |
| 246 | + Type(IntegerDataType(documentation = Documentation(description = description))), |
| 247 | + Type(LongDataType(documentation = Documentation(description = description))), |
| 248 | + Type(FloatDataType(documentation = Documentation(description = description))), |
| 249 | + Type(DoubleDataType(documentation = Documentation(description = description))), |
| 250 | + Type(BooleanDataType(documentation = Documentation(description = description))), |
| 251 | + Type(StringDataType(documentation = Documentation(description = description))), |
| 252 | + Type(LocalDateDataType(documentation = Documentation(description = description))), |
| 253 | + Type(OffsetDateTimeDataType(documentation = Documentation(description = description))) |
253 | 254 | ) { (type: DataType) -> |
254 | 255 |
|
255 | 256 | val html = writer.convert(type) |
|
0 commit comments