Search in sources :

Example 11 with GraphRowOverallAverages

use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.

the class GraphRowOverallAveragesTest method testIterator.

/**
 * Test of iterator method, of class GraphRowOverallAverages.
 */
@Test
public void testIterator() {
    System.out.println("iterator");
    GraphRowOverallAverages instance = new GraphRowOverallAverages();
    Iterator expResult = instance;
    Iterator result = instance.iterator();
    Assert.assertEquals(expResult, result);
}
Also used : GraphRowOverallAverages(kg.apc.charting.rows.GraphRowOverallAverages) Iterator(java.util.Iterator)

Example 12 with GraphRowOverallAverages

use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.

the class GraphRowOverallAveragesTest method testSetValue.

/**
 * Test of setValue method, of class GraphRowOverallAverages.
 */
@Test
public void testSetValue() {
    System.out.println("setValue");
    GraphPanelChartAverageElement value = null;
    GraphRowOverallAverages instance = new GraphRowOverallAverages();
    try {
        AbstractGraphPanelChartElement result = instance.setValue(value);
        Assert.fail("Exception expected");
    } catch (UnsupportedOperationException e) {
    }
}
Also used : GraphRowOverallAverages(kg.apc.charting.rows.GraphRowOverallAverages) GraphPanelChartAverageElement(kg.apc.charting.elements.GraphPanelChartAverageElement) AbstractGraphPanelChartElement(kg.apc.charting.AbstractGraphPanelChartElement)

Example 13 with GraphRowOverallAverages

use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.

the class GraphRowOverallAveragesTest method testGetElement.

/**
 * Test of getElement method, of class GraphRowOverallAverages.
 */
@Test
public void testGetElement() {
    System.out.println("getElement");
    long value = 100L;
    GraphRowOverallAverages instance = new GraphRowOverallAverages();
    AbstractGraphPanelChartElement expResult = new GraphPanelChartAverageElement(10);
    instance.add(value, 10);
    AbstractGraphPanelChartElement result = instance.getElement(value);
    Assert.assertTrue(instance.getElement(value).getValue() == expResult.getValue());
}
Also used : GraphRowOverallAverages(kg.apc.charting.rows.GraphRowOverallAverages) GraphPanelChartAverageElement(kg.apc.charting.elements.GraphPanelChartAverageElement) AbstractGraphPanelChartElement(kg.apc.charting.AbstractGraphPanelChartElement)

Example 14 with GraphRowOverallAverages

use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.

the class GraphRowOverallAveragesTest method testNext.

/**
 * Test of next method, of class GraphRowOverallAverages.
 */
@Test
public void testNext() {
    System.out.println("next");
    GraphRowOverallAverages instance = new GraphRowOverallAverages();
    assertEquals(instance, instance.next());
}
Also used : GraphRowOverallAverages(kg.apc.charting.rows.GraphRowOverallAverages)

Aggregations

GraphRowOverallAverages (kg.apc.charting.rows.GraphRowOverallAverages)14 GraphPanelChartAverageElement (kg.apc.charting.elements.GraphPanelChartAverageElement)3 AbstractGraphPanelChartElement (kg.apc.charting.AbstractGraphPanelChartElement)2 AbstractGraphRow (kg.apc.charting.AbstractGraphRow)2 GraphRowAverages (kg.apc.charting.rows.GraphRowAverages)2 Test (org.junit.Test)2 Iterator (java.util.Iterator)1