All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.abstracta.jmeter.javadsl.codegeneration.Comment Maven / Gradle / Ivy

Go to download

Simple API to run JMeter performance tests in an VCS and programmers friendly way.

There is a newer version: 028
Show newest version
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