use of kg.apc.charting.AbstractGraphPanelChartElement in project jmeter-plugins by undera.
the class GraphRowPercentilesTest method testGetElement.
/**
* Test of getElement method, of class GraphRowPercentiles.
*/
@Test
public void testGetElement() {
System.out.println("getElement");
long value = 500L;
GraphRowPercentiles instance = new GraphRowPercentiles();
for (int i = 0; i < expectedCount; i++) {
instance.add(i, i);
}
assertEquals(expectedCount, instance.size());
// force percentile calculation
instance.iterator();
AbstractGraphPanelChartElement result = instance.getElement(value);
assertEquals(32, result.getValue(), 0.001);
}
use of kg.apc.charting.AbstractGraphPanelChartElement in project jmeter-plugins by undera.
the class GraphRowSimpleTest method testGetElement.
/**
* Test of getElement method, of class GraphRowSimple.
*/
@Test
public void testGetElement() {
System.out.println("getElement");
long value = 100L;
AbstractGraphPanelChartElement expResult = new GraphPanelChartSimpleElement(10);
instance.add(value, 10);
AbstractGraphPanelChartElement result = instance.getElement(value);
Assert.assertTrue(result.getValue() == expResult.getValue());
}
use of kg.apc.charting.AbstractGraphPanelChartElement in project jmeter-plugins by undera.
the class GraphRowSumValuesTest method testGetElement.
/**
* Test of getElement method, of class GraphRowSumValues.
*/
@Test
public void testGetElement() {
System.out.println("getElement");
long value = 100L;
GraphRowSumValues instance = new GraphRowSumValues();
AbstractGraphPanelChartElement expResult = new GraphPanelChartSumElement(10);
instance.add(value, 10);
instance.getElement(value);
Assert.assertTrue(instance.getElement(value).getValue() == expResult.getValue());
}
Aggregations