forked from loafle/openapi-generator-original
[JMeter] Rename codegen class, template folder (#387)
* Rename JMeter client generator class name * Rename jmeter template folder * Update samples
This commit is contained in:
committed by
William Cheng
parent
38bb732673
commit
9e2fcda357
@@ -19,18 +19,13 @@ package org.openapitools.codegen.languages;
|
||||
|
||||
import org.openapitools.codegen.*;
|
||||
import org.openapitools.codegen.utils.*;
|
||||
import org.openapitools.codegen.mustache.*;
|
||||
import io.swagger.v3.oas.models.security.SecurityScheme;
|
||||
import io.swagger.v3.oas.models.*;
|
||||
import io.swagger.v3.oas.models.media.*;
|
||||
import io.swagger.v3.oas.models.responses.ApiResponse;
|
||||
import io.swagger.v3.oas.models.parameters.*;
|
||||
import io.swagger.v3.oas.models.info.Info;
|
||||
|
||||
import java.util.*;
|
||||
import java.io.File;
|
||||
|
||||
public class JMeterCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
public class JMeterClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
// source folder where to write the files
|
||||
protected String sourceFolder = "";
|
||||
@@ -69,11 +64,11 @@ public class JMeterCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
return "Generates a JMeter .jmx file.";
|
||||
}
|
||||
|
||||
public JMeterCodegen() {
|
||||
public JMeterClientCodegen() {
|
||||
super();
|
||||
|
||||
// set the output folder here
|
||||
outputFolder = "generated-code/JMeterCodegen";
|
||||
outputFolder = "generated-code/JMeterClientCodegen";
|
||||
|
||||
/*
|
||||
* Api classes. You can write classes for each Api file with the apiTemplateFiles map.
|
||||
@@ -90,7 +85,7 @@ public class JMeterCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
* Template Location. This is the location which templates will be read from. The generator
|
||||
* will use the resource stream to attempt to read the templates.
|
||||
*/
|
||||
embeddedTemplateDir = templateDir = "JMeter";
|
||||
embeddedTemplateDir = templateDir = "jmeter-client";
|
||||
|
||||
/*
|
||||
* Api Package. Optional, if needed, this can be used in templates
|
||||
@@ -47,7 +47,7 @@ org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen
|
||||
org.openapitools.codegen.languages.JavascriptClientCodegen
|
||||
org.openapitools.codegen.languages.JavascriptFlowtypedClientCodegen
|
||||
org.openapitools.codegen.languages.JavascriptClosureAngularClientCodegen
|
||||
org.openapitools.codegen.languages.JMeterCodegen
|
||||
org.openapitools.codegen.languages.JMeterClientCodegen
|
||||
org.openapitools.codegen.languages.LuaClientCodegen
|
||||
org.openapitools.codegen.languages.NodeJSServerCodegen
|
||||
org.openapitools.codegen.languages.ObjcClientCodegen
|
||||
|
||||
@@ -1 +1 @@
|
||||
2.2.3-SNAPSHOT
|
||||
3.0.3-SNAPSHOT
|
||||
@@ -1,2 +1,2 @@
|
||||
testCase,httpStatusCode,body,petId,apiKey,status,tags,petId,body,petId,name,status,petId,additionalMetadata,file
|
||||
testCase,httpStatusCode,pet,petId,apiKey,status,tags,petId,pet,petId,name,status,petId,additionalMetadata,file
|
||||
Success,200,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
|
@@ -1,2 +1,2 @@
|
||||
testCase,httpStatusCode,orderId,orderId,body
|
||||
testCase,httpStatusCode,orderId,orderId,order
|
||||
Success,200,0,0,0
|
||||
|
@@ -1,2 +1,2 @@
|
||||
testCase,httpStatusCode,body,body,body,username,username,username,password,username,body
|
||||
testCase,httpStatusCode,user,user,user,username,username,username,password,username,user
|
||||
Success,200,0,0,0,0,0,0,0,0,0
|
||||
|
Reference in New Issue
Block a user