Skip to content

Commit 9526950

Browse files
committed
disabled tests for not supported languages
1 parent c8c4270 commit 9526950

Some content is hidden

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

46 files changed

+186
-184
lines changed

modules/swagger-codegen/src/test/java/io/swagger/codegen/AbstractOptionsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected AbstractOptionsTest(OptionsProvider optionsProvider) {
2323
}
2424

2525
@SuppressWarnings("unused")
26-
@Test
26+
@Test(enabled = false)
2727
public void checkOptionsProcessing() {
2828
getCodegenConfig().additionalProperties().putAll(optionsProvider.createOptions());
2929
setExpectations();
@@ -34,7 +34,7 @@ public void checkOptionsProcessing() {
3434
}};
3535
}
3636

37-
@Test(description = "check if all options described in documentation are presented in test case")
37+
@Test(enabled = false, description = "check if all options described in documentation are presented in test case")
3838
public void checkOptionsHelp() {
3939
final List<String> cliOptions = Lists.transform(getCodegenConfig().cliOptions(), getCliOptionTransformer());
4040
final Set<String> testOptions = optionsProvider.createOptions().keySet();

modules/swagger-codegen/src/test/java/io/swagger/codegen/ClientAuthInputTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@SuppressWarnings("static-method")
1212
public class ClientAuthInputTest {
1313

14-
@Test(description = "read a file upload param from a 2.0 spec")
14+
@Test(enabled = false, description = "read a file upload param from a 2.0 spec")
1515
public void clientAuthInputTest() {
1616
final ClientOptInput input = new ClientOptInput();
1717

modules/swagger-codegen/src/test/java/io/swagger/codegen/akkascala/AkkaScalaClientCodegenTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@
1212
import static org.junit.Assert.assertThat;
1313

1414
public class AkkaScalaClientCodegenTest {
15-
15+
/** disable tests since until they be moved to new repo.
1616
private AkkaScalaClientCodegen akkaScalaClientCodegen;
1717
1818
@Before
1919
public void setup() {
2020
this.akkaScalaClientCodegen = new AkkaScalaClientCodegen();
2121
}
2222
23-
@Test
23+
2424
public void shouldGenerateReadmeFile() {
2525
List<SupportingFile> supportingFiles = this.akkaScalaClientCodegen.supportingFiles();
2626
2727
assertThat(supportingFiles.contains(new SupportingFile("README.mustache", "", "README.md")), is(equalTo(true)));
2828
assertThat(supportingFiles.contains(new SupportingFile("build.sbt.mustache", "", "build.sbt")), is(equalTo(true)));
2929
}
30+
*/
3031
}

modules/swagger-codegen/src/test/java/io/swagger/codegen/apex/ApexModelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@SuppressWarnings("static-method")
3131
public class ApexModelTest {
3232

33-
@Test(description = "convert a simple apex model with provided examples")
33+
@Test(enabled = false, description = "convert a simple apex model with provided examples")
3434
public void examplesProvidedTest() throws Exception {
3535
Schema integerSchema = new IntegerSchema().example(5);
3636
Schema passwordSchema = new PasswordSchema().example("password");
@@ -216,7 +216,7 @@ public void examplesProvidedTest() throws Exception {
216216
Assert.assertTrue(getBooleanValue(property13, CodegenConstants.IS_NOT_CONTAINER_EXT_NAME));
217217
}
218218

219-
@Test(description = "convert a simple apex model with default examples")
219+
@Test(enabled = false, description = "convert a simple apex model with default examples")
220220
public void defaultExamplesTest() {
221221
final Schema schema = new Schema()
222222
.addProperties("boolProp", new BooleanSchema())

modules/swagger-codegen/src/test/java/io/swagger/codegen/bash/BashTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void petstoreParameterExampleTest() {
3939
}
4040

4141

42-
@Test(description = "test Bash client codegen escapeText method")
42+
@Test(enabled = false, description = "test Bash client codegen escapeText method")
4343
public void escapeTextTest() {
4444
final DefaultCodegen codegen = new BashClientCodegen();
4545

@@ -92,7 +92,7 @@ public void escapeTextTest() {
9292
"\n---\nnice -n 100 mvn test\n---");
9393
}
9494

95-
@Test(description = "test Bash client codegen escapeUnsafeCharacters method")
95+
@Test(enabled = false, description = "test Bash client codegen escapeUnsafeCharacters method")
9696
public void escapeUnsafeCharactersTest() {
9797
final DefaultCodegen codegen = new BashClientCodegen();
9898

@@ -102,7 +102,7 @@ public void escapeUnsafeCharactersTest() {
102102

103103
}
104104

105-
@Test(description = "test Bash client codegen escapeReservedWord method")
105+
@Test(enabled = false, description = "test Bash client codegen escapeReservedWord method")
106106
public void escapeReservedWordTest() {
107107
final DefaultCodegen codegen = new BashClientCodegen();
108108

modules/swagger-codegen/src/test/java/io/swagger/codegen/csharp/CSharpModelTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@SuppressWarnings("static-method")
2626
public class CSharpModelTest {
2727

28-
@Test(description = "convert a model with array property to default List<T>")
28+
@Test(enabled = false, description = "convert a model with array property to default List<T>")
2929
public void arrayPropertyTest() {
3030
final Schema schema = getArrayTestSchema();
3131

@@ -50,7 +50,7 @@ public void arrayPropertyTest() {
5050
Assert.assertTrue(getBooleanValue(property, CodegenConstants.IS_CONTAINER_EXT_NAME));
5151
}
5252

53-
@Test(description = "convert a model with array property to Collection<T>")
53+
@Test(enabled = false, description = "convert a model with array property to Collection<T>")
5454
public void arrayPropertyCollectionOptionTest() {
5555
final Schema schema = getArrayTestSchema();
5656

@@ -73,7 +73,7 @@ public void arrayPropertyCollectionOptionTest() {
7373
Assert.assertTrue(getBooleanValue(property, CodegenConstants.IS_CONTAINER_EXT_NAME));
7474
}
7575

76-
@Test(description = "convert a model with array property to Collection<T>")
76+
@Test(enabled = false, description = "convert a model with array property to Collection<T>")
7777
public void arrayPropertyICollectionOptionTest() {
7878
final Schema schema = getArrayTestSchema();
7979

@@ -107,7 +107,7 @@ private Schema getArrayTestSchema() {
107107
.addRequiredItem("id");
108108
}
109109

110-
@Test(description = "convert a simple model")
110+
@Test(enabled = false, description = "convert a simple model")
111111
public void simpleModelTest() {
112112
final Schema model = new Schema()
113113
.description("a sample model")
@@ -157,7 +157,7 @@ public void simpleModelTest() {
157157
Assert.assertTrue(getBooleanValue(property3, CodegenConstants.IS_NOT_CONTAINER_EXT_NAME));
158158
}
159159

160-
@Test(description = "convert a model with list property")
160+
@Test(enabled = false, description = "convert a model with list property")
161161
public void listPropertyTest() {
162162
final Schema model = new Schema()
163163
.description("a sample model")
@@ -197,7 +197,7 @@ public void listPropertyTest() {
197197
Assert.assertTrue(getBooleanValue(property2, CodegenConstants.IS_CONTAINER_EXT_NAME));
198198
}
199199

200-
@Test(description = "convert a model with a map property")
200+
@Test(enabled = false, description = "convert a model with a map property")
201201
public void mapPropertyTest() {
202202
final Schema schema = new Schema()
203203
.description("a sample model")
@@ -223,7 +223,7 @@ public void mapPropertyTest() {
223223
Assert.assertTrue(getBooleanValue(property1, CodegenConstants.IS_PRIMITIVE_TYPE_EXT_NAME));
224224
}
225225

226-
@Test(description = "convert a model with complex property")
226+
@Test(enabled = false, description = "convert a model with complex property")
227227
public void complexPropertyTest() {
228228
final Schema schema = new Schema()
229229
.description("a sample model")
@@ -245,7 +245,7 @@ public void complexPropertyTest() {
245245
Assert.assertTrue(getBooleanValue(property1, CodegenConstants.IS_NOT_CONTAINER_EXT_NAME));
246246
}
247247

248-
@Test(description = "convert a model with complex list property")
248+
@Test(enabled = false, description = "convert a model with complex list property")
249249
public void complexListPropertyTest() {
250250
final Schema schema = new Schema()
251251
.description("a sample model")
@@ -270,7 +270,7 @@ public void complexListPropertyTest() {
270270
Assert.assertTrue(getBooleanValue(property1, CodegenConstants.IS_CONTAINER_EXT_NAME));
271271
}
272272

273-
@Test(description = "convert a model with complex map property")
273+
@Test(enabled = false, description = "convert a model with complex map property")
274274
public void complexMapPropertyTest() {
275275
final Schema schema = new Schema()
276276
.description("a sample model")
@@ -297,7 +297,7 @@ public void complexMapPropertyTest() {
297297
Assert.assertFalse(getBooleanValue(property1, CodegenConstants.IS_NOT_CONTAINER_EXT_NAME));
298298
}
299299

300-
@Test(description = "convert an array model")
300+
@Test(enabled = false, description = "convert an array model")
301301
public void arrayModelTest() {
302302
final Schema schema = new ArraySchema()
303303
.items(new Schema().$ref("#/components/schemas/Children"))
@@ -314,7 +314,7 @@ public void arrayModelTest() {
314314
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("Children")).size(), 1);
315315
}
316316

317-
@Test(description = "convert an map model")
317+
@Test(enabled = false, description = "convert an map model")
318318
public void mapModelTest() {
319319
final Schema schema = new Schema()
320320
.description("a map model")

modules/swagger-codegen/src/test/java/io/swagger/codegen/eiffel/EiffelModelTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@SuppressWarnings("static-method")
2121
public class EiffelModelTest {
2222

23-
@Test(description = "convert a simple Eiffel model")
23+
@Test(enabled = false, description = "convert a simple Eiffel model")
2424
public void simpleModelTest() {
2525
final Schema schema = new Schema()
2626
.description("a sample model")
@@ -72,7 +72,7 @@ public void simpleModelTest() {
7272
Assert.assertTrue(getBooleanValue(property3, CodegenConstants.IS_NOT_CONTAINER_EXT_NAME));
7373
}
7474

75-
@Test(description = "convert a model with list property")
75+
@Test(enabled = false, description = "convert a model with list property")
7676
public void listPropertyTest() {
7777
final Schema schema = new Schema()
7878
.description("a sample model")
@@ -113,7 +113,7 @@ public void listPropertyTest() {
113113

114114

115115

116-
@Test(description = "convert a model with a map property")
116+
@Test(enabled = false, description = "convert a model with a map property")
117117
public void mapPropertyTest() {
118118
final Schema schema = getMapSchema();
119119
final DefaultCodegen codegen = new EiffelClientCodegen();

modules/swagger-codegen/src/test/java/io/swagger/codegen/haskellhttpclient/HaskellHttpClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class HaskellHttpClientTest {
77

8-
@Test(description = "convert a haskell model with dots")
8+
@Test(enabled = false, description = "convert a haskell model with dots")
99
public void modelTest() {
1010
Assert.assertEquals(true, true);
1111
}

modules/swagger-codegen/src/test/java/io/swagger/codegen/haskellservant/HaskellTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class HaskellTest {
77

8-
@Test(description = "convert a haskell model with dots")
8+
@Test(enabled = false, description = "convert a haskell model with dots")
99
public void modelTest() {
1010
Assert.assertEquals(true, true);
1111
}

modules/swagger-codegen/src/test/java/io/swagger/codegen/ignore/CodegenIgnoreProcessorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void afterTest() throws IOException {
7878
}
7979
}
8080

81-
@Test
81+
@Test(enabled = false)
8282
public void evaluate() {
8383
if(this.skip) {
8484
return;

0 commit comments

Comments
 (0)