Skip to content

Commit 8c1678b

Browse files
authored
Merge pull request #8716 from swagger-api/fix_tests_4_build
remove system property to avoid affect others generator tests.
2 parents 35dded1 + cf54a5e commit 8c1678b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/swagger-codegen/src/test/java/io/swagger/codegen/ruby/RubyClientCodegenTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class RubyClientCodegenTest {
3232
@BeforeMethod
3333
public void setUp() throws Exception {
3434
folder.create();
35+
if (System.getProperty(CodegenConstants.SUPPORTING_FILES) != null) {
36+
System.clearProperty(CodegenConstants.SUPPORTING_FILES);
37+
}
3538
}
3639

3740
@AfterMethod

modules/swagger-codegen/src/test/java/io/swagger/codegen/swaggeryaml/SwaggerYamlGeneratorTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
package io.swagger.codegen.swaggeryaml;
22

33
import io.swagger.codegen.ClientOptInput;
4+
import io.swagger.codegen.CodegenConstants;
45
import io.swagger.codegen.DefaultGenerator;
56
import io.swagger.codegen.config.CodegenConfigurator;
67
import org.apache.commons.io.FileUtils;
78
import org.junit.rules.TemporaryFolder;
89
import org.testng.Assert;
10+
import org.testng.annotations.AfterClass;
911
import org.testng.annotations.Test;
1012

1113
import java.io.File;
1214

1315
public class SwaggerYamlGeneratorTest {
1416

17+
@AfterClass
18+
public void cleanup() {
19+
System.clearProperty(CodegenConstants.SUPPORTING_FILES);
20+
}
21+
1522
@Test
1623
public void testLongText() throws Exception {
1724
final String LONG_DESCRIPTION_SAMPLE = "Are creatures of the cosmos Rig Veda? Trillion! Made in the interiors of collapsing stars Apollonius of Perga, globular star cluster emerged into consciousness bits of moving fluff brain is the seed of intelligence citizens of distant epochs another world courage of our questions a mote of dust suspended in a sunbeam ship of the imagination, paroxysm of global death intelligent beings? Two ghostly white figures in coveralls and helmets are soflty dancing hearts of the stars brain is the seed of intelligence quasar, Drake Equation billions upon billions and billions upon billions upon billions upon billions upon billions upon billions upon billions";

0 commit comments

Comments
 (0)