Search in sources :

Example 1 with IntegerProperty

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));
}
Also used : IntegerProperty(org.apache.jmeter.testelement.property.IntegerProperty)

Example 2 with IntegerProperty

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()));
}
Also used : IntegerProperty(org.apache.jmeter.testelement.property.IntegerProperty)

Example 3 with IntegerProperty

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;
}
Also used : IntegerProperty(org.apache.jmeter.testelement.property.IntegerProperty)

Example 4 with IntegerProperty

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());
}
Also used : IntegerProperty(org.apache.jmeter.testelement.property.IntegerProperty)

Example 5 with IntegerProperty

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));
}
Also used : IntegerProperty(org.apache.jmeter.testelement.property.IntegerProperty)

Aggregations

IntegerProperty (org.apache.jmeter.testelement.property.IntegerProperty)8 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)1 BooleanProperty (org.apache.jmeter.testelement.property.BooleanProperty)1 DoubleProperty (org.apache.jmeter.testelement.property.DoubleProperty)1 JMeterProperty (org.apache.jmeter.testelement.property.JMeterProperty)1 NumberProperty (org.apache.jmeter.testelement.property.NumberProperty)1 StringProperty (org.apache.jmeter.testelement.property.StringProperty)1 Test (org.junit.jupiter.api.Test)1