use of org.apache.jmeter.testelement.property.DoubleProperty in project jmeter by apache.
the class TestNumberProperty method testCompareToMinMax.
@Test
public void testCompareToMinMax() {
NumberProperty n1 = new DoubleProperty("n1", Double.MIN_VALUE);
NumberProperty n2 = new DoubleProperty("n2", Double.MAX_VALUE);
assertTrue(n1.compareTo(n2) < 0);
}
use of org.apache.jmeter.testelement.property.DoubleProperty in project jmeter by apache.
the class TestNumberProperty method testDZeroCompareToDZero.
@Test
public void testDZeroCompareToDZero() {
NumberProperty n1 = new DoubleProperty("n1", 0.0);
NumberProperty n2 = new DoubleProperty("n2", 0.0);
assertEquals(0, n1.compareTo(n2));
}
use of org.apache.jmeter.testelement.property.DoubleProperty in project jmeter by apache.
the class TestNumberProperty method testIZeroCompareToDZero.
@Test
public void testIZeroCompareToDZero() {
NumberProperty n1 = new IntegerProperty("n1", 0);
NumberProperty n2 = new DoubleProperty("n2", 0.0);
assertEquals(0, n1.compareTo(n2));
}
use of org.apache.jmeter.testelement.property.DoubleProperty in project jmeter by apache.
the class TestNumberProperty method testCompareToNegative.
@Test
public void testCompareToNegative() {
NumberProperty n1 = new DoubleProperty("n1", -1.0);
NumberProperty n2 = new DoubleProperty("n2", 0.0);
assertTrue(n1.compareTo(n2) < 0);
}
use of org.apache.jmeter.testelement.property.DoubleProperty in project jmeter by apache.
the class TestNumberProperty method testCompareToPositive.
@Test
public void testCompareToPositive() {
NumberProperty n1 = new DoubleProperty("n1", 1.0);
NumberProperty n2 = new DoubleProperty("n2", 0.0);
assertTrue(n1.compareTo(n2) > 0);
}
Aggregations