package au.gov.amsa.spark.ais;

import static org.junit.Assert.assertEquals;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.junit.Test;
import org.junit.Ignore;

import au.gov.amsa.spark.ais.AnchoredPredictor.Status;

public class AnchoredPredictorTest {

    @Test
    @Ignore
    public void testLoad() {
        SparkConf sparkConf = new SparkConf().setAppName("AnchoragePredictor");
        sparkConf.set("spark.ui.enabled", "false");
        // just run this locally
        sparkConf.setMaster("local");
        JavaSparkContext sc = new JavaSparkContext(sparkConf);
        AnchoredPredictor predictor = new AnchoredPredictor(sc);
        // can do 10 million of these a second!
        Status status = predictor.predict(-10, 145, 10, 0, 8.0, 10, 8.0, 7);
        assertEquals(Status.OTHER, status);
    }

}

@@ -183,33 +183,8 @@
 est;
-%0Aimport org.junit.Ignore;
 %0A%0Aim
@@ -289,20 +289,8 @@
 est%0A
-    @Ignore%0A
     

test actually does pass on travis, reverting