Class SingleGuiClassCallBuilder
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
-
- us.abstracta.jmeter.javadsl.codegeneration.SingleGuiClassCallBuilder
-
- Direct Known Subclasses:
DslBaseHttpSampler.BaseHttpSamplerCodeBuilder,DslHttpDefaults.CodeBuilder,DslViewResultsTree.CodeBuilder
public abstract class SingleGuiClassCallBuilder extends MethodCallBuilder
Abstracts common logic for usual scenario where MethodCallBuilders apply to test elements associated to certain JMeter Gui component.In most of the cases a
MethodCallBuildercan simply extend this orSingleTestElementCallBuilderclass. Scenarios where these classes would not be used are complex ones which cover several test elements. Eg:DslDefaultThreadGrouphandles both JMeter default thread groups but also ultimate thread groups.This class abstracts logic of checking if a test element MethodCall should be generated by this builder or not, just comparing if the test element associated JMeter GUI component is of the type associated to the MethodCallBuilder instance.
- Since:
- 0.52
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends org.apache.jmeter.gui.JMeterGUIComponent>guiClass-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
builderMethods
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSingleGuiClassCallBuilder(Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<Method> builderMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(MethodCallContext context)Allows checking if this builder can build method calls for the given context.-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
buildMethodCall, buildMethodCall, getBuilderOptionName, order, propertyIterator2Stream
-
-
-
-
Field Detail
-
guiClass
protected final Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass
-
-
Method Detail
-
matches
public boolean matches(MethodCallContext context)
Description copied from class:MethodCallBuilderAllows checking if this builder can build method calls for the given context.This method is invoked in every registered MethodCallBuilder, until one is found that matches.
- Specified by:
matchesin classMethodCallBuilder- Parameters:
context- provides information used to determine if a method call might be created by this builder. For example: JMeter test plan tree node test element, parent context, a map of entries to host custom information, etc.- Returns:
- true if this builder knows how to build a method call for the context, false otherwise.
-
-