us.abstracta.jmeter.javadsl.codegeneration.Comment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmeter-java-dsl Show documentation
Show all versions of jmeter-java-dsl Show documentation
Simple API to run JMeter performance tests in an VCS and programmers friendly way.
package us.abstracta.jmeter.javadsl.codegeneration;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
/**
* Allows specifying a comment to be added to generated code.
*
* This is particularly helpful when adding tips, warnings or any extra information to generated
* code that needs attention/review.
*
* @since 1.5
*/
public class Comment implements CodeSegment {
private final String body;
public Comment(String body) {
this.body = body;
}
@Override
public String buildCode(String indent) {
return "// " + body;
}
@Override
public Collection getStaticImports() {
return Collections.emptyList();
}
@Override
public Collection getImports() {
return Collections.emptyList();
}
@Override
public Map getMethodDefinitions() {
return Collections.emptyMap();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy