// Path: src/main/java/au/net/woodberry/ta/toolbox/object/PivotPoint.java
// public class PivotPoint {
// 
//     private TADecimal pivotPoint; // <- this is the pivot point pivotPoint
//     private TADecimal resistanceOne;
//     private TADecimal resistanceTwo;
//     private TADecimal supportOne;
//     private TADecimal supportTwo;
// 
//     public TADecimal getPivotPoint() {
//         return pivotPoint;
//     }
// 
//     public void setPivotPoint(TADecimal pivotPoint) {
//         this.pivotPoint = pivotPoint;
//     }
// 
//     public TADecimal getResistanceOne() {
//         return resistanceOne;
//     }
// 
//     public void setResistanceOne(TADecimal resistanceOne) {
//         this.resistanceOne = resistanceOne;
//     }
// 
//     public TADecimal getResistanceTwo() {
//         return resistanceTwo;
//     }
// 
//     public void setResistanceTwo(TADecimal resistanceTwo) {
//         this.resistanceTwo = resistanceTwo;
//     }
// 
//     public TADecimal getSupportOne() {
//         return supportOne;
//     }
// 
//     public TADecimal getSupportTwo() {
//         return supportTwo;
//     }
// 
//     public void setSupportOne(TADecimal supportOne) {
//         this.supportOne = supportOne;
//     }
// 
//     public void setSupportTwo(TADecimal supportTwo) {
//         this.supportTwo = supportTwo;
//     }
// }


import au.net.woodberry.ta.toolbox.object.PivotPoint;
import eu.verdelhan.ta4j.TADecimal;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
package au.net.woodberry.ta.toolbox.indicators.directional;




public class StandardPivotPointIndicatorTest {

    private static final double PREVIOUS_HIGH = 5367.8;
    private static final double PREVIOUS_LOW = 4308.4;
    private static final double PREVIOUS_CLOSE = 5323.8;
    private static final double PIVOT_POINT_VALUE = (PREVIOUS_HIGH + PREVIOUS_LOW + PREVIOUS_CLOSE) / 3;
    private static final double DELTA = 0.01;

    private StandardPivotPointIndicator standardPivotPoint;

    @Before
    public void before() {
        standardPivotPoint = new StandardPivotPointIndicator(TADecimal.valueOf(PREVIOUS_HIGH), TADecimal.valueOf(PREVIOUS_LOW), TADecimal.valueOf(PREVIOUS_CLOSE));
    }
    @Test
    public void testPivotPoint() {
// Path: src/main/java/au/net/woodberry/ta/toolbox/object/PivotPoint.java
// public class PivotPoint {
// 
//     private TADecimal pivotPoint; // <- this is the pivot point pivotPoint
//     private TADecimal resistanceOne;
//     private TADecimal resistanceTwo;
//     private TADecimal supportOne;
//     private TADecimal supportTwo;
// 
//     public TADecimal getPivotPoint() {
//         return pivotPoint;
//     }
// 
//     public void setPivotPoint(TADecimal pivotPoint) {
//         this.pivotPoint = pivotPoint;
//     }
// 
//     public TADecimal getResistanceOne() {
//         return resistanceOne;
//     }
// 
//     public void setResistanceOne(TADecimal resistanceOne) {
//         this.resistanceOne = resistanceOne;
//     }
// 
//     public TADecimal getResistanceTwo() {
//         return resistanceTwo;
//     }
// 
//     public void setResistanceTwo(TADecimal resistanceTwo) {
//         this.resistanceTwo = resistanceTwo;
//     }
// 
//     public TADecimal getSupportOne() {
//         return supportOne;
//     }
// 
//     public TADecimal getSupportTwo() {
//         return supportTwo;
//     }
// 
//     public void setSupportOne(TADecimal supportOne) {
//         this.supportOne = supportOne;
//     }
// 
//     public void setSupportTwo(TADecimal supportTwo) {
//         this.supportTwo = supportTwo;
//     }
// }


// Path: src/test/java/au/net/woodberry/ta/toolbox/indicators/directional/StandardPivotPointIndicatorTest.java
import au.net.woodberry.ta.toolbox.object.PivotPoint;
import eu.verdelhan.ta4j.TADecimal;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

package au.net.woodberry.ta.toolbox.indicators.directional;




public class StandardPivotPointIndicatorTest {

    private static final double PREVIOUS_HIGH = 5367.8;
    private static final double PREVIOUS_LOW = 4308.4;
    private static final double PREVIOUS_CLOSE = 5323.8;
    private static final double PIVOT_POINT_VALUE = (PREVIOUS_HIGH + PREVIOUS_LOW + PREVIOUS_CLOSE) / 3;
    private static final double DELTA = 0.01;

    private StandardPivotPointIndicator standardPivotPoint;

    @Before
    public void before() {
        standardPivotPoint = new StandardPivotPointIndicator(TADecimal.valueOf(PREVIOUS_HIGH), TADecimal.valueOf(PREVIOUS_LOW), TADecimal.valueOf(PREVIOUS_CLOSE));
    }
    @Test
    public void testPivotPoint() {
        PivotPoint pivotPoint = standardPivotPoint.getValue(0);