コード例 #1
0
 /** 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);
   assertTrue(result.getValue() == expResult.getValue());
 }
コード例 #2
0
  /** Test of getElement method, of class GraphRowExactValues. */
  @Test
  public void testGetElement() {
    System.out.println("getElement");

    long value = 100L;
    GraphRowExactValues instance = new GraphRowExactValues();
    AbstractGraphPanelChartElement expResult = new GraphPanelChartExactElement(value, 2);
    instance.add(value, 2);
    AbstractGraphPanelChartElement result = instance.getElement(value);
    assertTrue(instance.getElement(value).getValue() == expResult.getValue());
  }