Skip to content

Commit

Permalink
Merge pull request #8716 from swagger-api/fix_tests_4_build
Browse files Browse the repository at this point in the history
remove system property to avoid affect others generator tests.
  • Loading branch information
HugoMario committed Sep 19, 2018
2 parents 35dded1 + cf54a5e commit 8c1678b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -32,6 +32,9 @@ public class RubyClientCodegenTest {
@BeforeMethod
public void setUp() throws Exception {
folder.create();
if (System.getProperty(CodegenConstants.SUPPORTING_FILES) != null) {
System.clearProperty(CodegenConstants.SUPPORTING_FILES);
}
}

@AfterMethod
Expand Down
@@ -1,17 +1,24 @@
package io.swagger.codegen.swaggeryaml;

import io.swagger.codegen.ClientOptInput;
import io.swagger.codegen.CodegenConstants;
import io.swagger.codegen.DefaultGenerator;
import io.swagger.codegen.config.CodegenConfigurator;
import org.apache.commons.io.FileUtils;
import org.junit.rules.TemporaryFolder;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;

import java.io.File;

public class SwaggerYamlGeneratorTest {

@AfterClass
public void cleanup() {
System.clearProperty(CodegenConstants.SUPPORTING_FILES);
}

@Test
public void testLongText() throws Exception {
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";
Expand Down

0 comments on commit 8c1678b

Please sign in to comment.