@@ -22,15 +22,9 @@ class GenerateTaskConfigurationCacheTest : TestBase() {
2222 @DataProvider(name = " gradle_version_provider" )
2323 private fun gradleVersionProviderWithConfigurationCache (): Array <Array <String >> = arrayOf(
2424 arrayOf(" 8.7" , " STRING" ),
25- arrayOf(" 7.6.4" , " STRING" ),
2625 arrayOf(" 8.7" , " FILE" )
2726 )
2827
29- @DataProvider(name = " gradle_version_provider_without_cc" )
30- private fun gradleVersionProviderWithoutConfigurationCache (): Array <Array <String >> = arrayOf(
31- arrayOf(" 5.6.1" , " STRING" )
32- )
33-
3428 // inputSpec tests
3529
3630 private fun inputSpecExtensionContents (format : PropertyFormat ) = """
@@ -75,37 +69,6 @@ class GenerateTaskConfigurationCacheTest : TestBase() {
7569 return parts.first().toInt()
7670 }
7771
78- @Test(dataProvider = " gradle_version_provider_without_cc" )
79- fun `openApiGenerate should work with Gradle legacy versions` (gradleVersion : String , format : String ) {
80- val propertyFormat = PropertyFormat .valueOf(format)
81- if (getJavaVersion() > 12 ) {
82- // https://docs.gradle.org/current/userguide/compatibility.html
83- throw SkipException (" Skipping test as Gradle ${gradleVersion} is not compatible with Java ${getJavaVersion()} " )
84- }
85- // Arrange
86- withProject(inputSpecExtensionContents(propertyFormat))
87-
88- // Act
89- val result1 = build {
90- withProjectDir(projectDirCC)
91- withArguments(" clean" , " openApiGenerate" )
92- withGradleVersion(gradleVersion)
93- }
94-
95- val expectedRelativeFilePathSet = projectDirCC.toRelativeFilePathSet()
96-
97- val result2 = build {
98- withProjectDir(projectDirCC)
99- withArguments(" clean" , " openApiGenerate" )
100- withGradleVersion(gradleVersion)
101- }
102-
103- // Assert
104- assertEquals(TaskOutcome .SUCCESS , result1.task(" :openApiGenerate" )?.outcome)
105- assertEquals(TaskOutcome .SUCCESS , result2.task(" :openApiGenerate" )?.outcome)
106- assertEquals(expectedRelativeFilePathSet, projectDirCC.toRelativeFilePathSet())
107- }
108-
10972 // Helper methods & test fixtures
11073
11174 private fun File.toRelativeFilePathSet () =
0 commit comments