use of org.apache.jmeter.testelement.property.IntegerProperty in project jmeter by apache.
the class ResponseAssertion method setTestTypeMasked.
private void setTestTypeMasked(int testType) {
int value = getTestType() & ~TYPE_MASK | testType;
setProperty(new IntegerProperty(TEST_TYPE, value));
}
use of org.apache.jmeter.testelement.property.IntegerProperty in project jmeter by apache.
the class ConstantThroughputTimer method setCalcMode.
public void setCalcMode(int mode) {
Mode resolved = Mode.CACHED_VALUES[mode];
setProperty(new IntegerProperty(CALC_MODE, resolved.ordinal()));
}
use of org.apache.jmeter.testelement.property.IntegerProperty in project jmeter by apache.
the class IntegerPropertyConverter method unmarshal.
/**
* {@inheritDoc}
*/
@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
final String name = ConversionHelp.getPropertyName(reader, context);
if (name == null) {
return null;
}
IntegerProperty prop = new IntegerProperty(name, Integer.parseInt(reader.getValue()));
return prop;
}
use of org.apache.jmeter.testelement.property.IntegerProperty in project jmeter by apache.
the class IntegerPropertyConverter method marshal.
/**
* {@inheritDoc}
*/
@Override
public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext arg2) {
IntegerProperty prop = (IntegerProperty) obj;
writer.addAttribute(ConversionHelp.ATT_NAME, ConversionHelp.encode(prop.getName()));
writer.setValue(prop.getStringValue());
}
use of org.apache.jmeter.testelement.property.IntegerProperty in project jmeter by apache.
the class ProxyControl method setGroupingMode.
public void setGroupingMode(int grouping) {
this.groupingMode = grouping;
setProperty(new IntegerProperty(GROUPING_MODE, grouping));
}
Aggregations