Skip to content

Commit ffb71ea

Browse files
committed
updated, based to core
1 parent 2a6b117 commit ffb71ea

93 files changed

Lines changed: 90 additions & 2502 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/testInt/groovy/com/github/hauner/openapi/processor/ProcessorTestBase.groovy

Lines changed: 0 additions & 193 deletions
This file was deleted.

src/testInt/groovy/com/github/hauner/openapi/processor/TestSet.groovy

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/testInt/groovy/com/github/hauner/openapi/processor/ProcessorEndToEndTest.groovy renamed to src/testInt/groovy/com/github/hauner/openapi/processor/spring/ProcessorEndToEndTest.groovy

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi.processor
17+
package com.github.hauner.openapi.processor.spring
1818

1919
import com.github.hauner.openapi.core.parser.ParserType
20+
import com.github.hauner.openapi.spring.processor.SpringProcessor
21+
import com.github.hauner.openapi.test.ProcessorTestBase
22+
import com.github.hauner.openapi.test.TestSet
2023
import org.junit.Test
2124
import org.junit.runner.RunWith
2225
import org.junit.runners.Parameterized
@@ -29,12 +32,12 @@ class ProcessorEndToEndTest extends ProcessorTestBase {
2932

3033
@Parameterized.Parameters(name = "{0}")
3134
static Collection<TestSet> sources () {
32-
def swagger = TestSet.testSets.collect {
33-
new TestSet (name: it, parser: ParserType.SWAGGER)
35+
def swagger = TestSets.ALL.collect {
36+
new TestSet (name: it, processor: new SpringProcessor(), parser: ParserType.SWAGGER)
3437
}
3538

36-
def openapi4j = TestSet.testSets.collect {
37-
new TestSet (name: it, parser: ParserType.OPENAPI4J)
39+
def openapi4j = TestSets.ALL.collect {
40+
new TestSet (name: it, processor: new SpringProcessor(), parser: ParserType.OPENAPI4J)
3841
}
3942

4043
swagger + openapi4j

src/testInt/groovy/com/github/hauner/openapi/processor/ProcessorJimsFileSystemTest.groovy renamed to src/testInt/groovy/com/github/hauner/openapi/processor/spring/ProcessorJimsFileSystemTest.groovy

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi.processor
17+
package com.github.hauner.openapi.processor.spring
1818

1919
import com.github.hauner.openapi.core.parser.ParserType
20+
import com.github.hauner.openapi.spring.processor.SpringProcessor
21+
import com.github.hauner.openapi.test.ProcessorTestBase
22+
import com.github.hauner.openapi.test.TestSet
2023
import com.google.common.jimfs.Configuration
2124
import com.google.common.jimfs.Jimfs
2225
import org.junit.Test
@@ -34,8 +37,8 @@ class ProcessorJimsFileSystemTest extends ProcessorTestBase {
3437
// the swagger parser does not work with a custom FileSystem so we just run the test with
3538
// openapi4j
3639

37-
TestSet.testSets.collect {
38-
new TestSet (name: it, parser: ParserType.OPENAPI4J)
40+
TestSets.ALL.collect {
41+
new TestSet (name: it, processor: new SpringProcessor(), parser: ParserType.OPENAPI4J)
3942
}
4043
}
4144

src/testInt/groovy/com/github/hauner/openapi/processor/ProcessorPendingTest.groovy renamed to src/testInt/groovy/com/github/hauner/openapi/processor/spring/ProcessorPendingTest.groovy

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,26 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi.processor
17+
package com.github.hauner.openapi.processor.spring
1818

1919
import com.github.hauner.openapi.core.parser.ParserType
20+
import com.github.hauner.openapi.spring.processor.SpringProcessor
21+
import com.github.hauner.openapi.test.ProcessorTestBase
22+
import com.github.hauner.openapi.test.TestSet
23+
import org.junit.Ignore
2024
import org.junit.Test
2125
import org.junit.runner.RunWith
2226
import org.junit.runners.Parameterized
23-
import spock.lang.Ignore
2427

25-
@Ignore
28+
//@Ignore
2629
@RunWith(Parameterized)
2730
class ProcessorPendingTest extends ProcessorTestBase {
2831

2932
@Parameterized.Parameters(name = "{0}")
3033
static Collection<TestSet> sources () {
3134
return [
32-
new TestSet(name: 'params-simple-data-types-micronaut', parser: ParserType.SWAGGER, target: 'micronaut'),
33-
new TestSet(name: 'params-simple-data-types-micronaut', parser: ParserType.OPENAPI4J, target: 'micronaut')
35+
new TestSet(name: 'params-request-body-multipart-mapping', processor: new SpringProcessor (), parser: ParserType.SWAGGER),
36+
// new TestSet(name: 'params-simple-data-types-micronaut', processor: new SpringProcessor (), parser: ParserType.OPENAPI4J)
3437
]
3538
}
3639

0 commit comments

Comments
 (0)