Package kg.apc.charting.elements

Source Code of kg.apc.charting.elements.GraphPanelChartSimpleElementTest

package kg.apc.charting.elements;

import kg.apc.charting.elements.GraphPanelChartSimpleElement;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

public class GraphPanelChartSimpleElementTest {

    public GraphPanelChartSimpleElementTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception
    {
    }

    @AfterClass
    public static void tearDownClass() throws Exception
    {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of add method, of class GraphPanelChartSimpleElement.
     */
    @Test
    public void testAdd()
    {
        System.out.println("add");
        double yVal = 0.0;
        GraphPanelChartSimpleElement instance = new GraphPanelChartSimpleElement();
        instance.add(yVal);
    }

    /**
     * Test of getValue method, of class GraphPanelChartSimpleElement.
     */
    @Test
    public void testGetValue()
    {
        System.out.println("getValue");
        GraphPanelChartSimpleElement instance = new GraphPanelChartSimpleElement();
        instance.add(1);
        instance.add(2);
        double expResult = 2.0;
        double result = instance.getValue();
        assertEquals(expResult, result, 0.0);
    }

}
TOP

Related Classes of kg.apc.charting.elements.GraphPanelChartSimpleElementTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.