Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 8160a48

Browse files
committed
avoid shared state of tests, #65
1 parent 54c60d4 commit 8160a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/kotlin/io/openapiprocessor/core/converter/DataTypeConverterSuffixSpec.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import io.openapiprocessor.core.support.getSchemaInfo
1919
import io.openapiprocessor.core.support.parse
2020

2121
class DataTypeConverterSuffixSpec: StringSpec({
22-
val dataTypes = DataTypes()
2322

2423
"adds suffix to model data type name" {
24+
val dataTypes = DataTypes()
2525
val options = ApiOptions()
2626
options.modelNameSuffix = "Suffix"
2727

@@ -71,6 +71,7 @@ class DataTypeConverterSuffixSpec: StringSpec({
7171
}
7272

7373
"adds suffix to model enum data type name" {
74+
val dataTypes = DataTypes()
7475
val options = ApiOptions()
7576
options.modelNameSuffix = "Suffix"
7677

@@ -119,6 +120,7 @@ class DataTypeConverterSuffixSpec: StringSpec({
119120
}
120121

121122
"adds suffix to allOf model data type name" {
123+
val dataTypes = DataTypes()
122124
val options = ApiOptions()
123125
options.modelNameSuffix = "Suffix"
124126

0 commit comments

Comments
 (0)