Run it as part of integration testing, you can still use scala test but with a
different sub folder (it or integrationtest) instead of test.
Within integrationtest you create a local Spark server that has also
accumulators.
> On 10. Apr 2018, at 17:35, Guillermo Ortiz
I have a unitTest in SparkStreaming which has an input parameters.
-DStream[String]
Inside of the code I want to update an LongAccumulator. When I execute the
test I get an NullPointerException because the accumulator doesn't exist.
Is there any way to test this?
My accumulator is updated in