spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynold Xin <r...@databricks.com>
Subject Re: Junit spark tests
Date Wed, 10 Sep 2014 00:16:43 GMT
Can you be a little bit more specific, maybe give a code snippet?


On Tue, Sep 9, 2014 at 5:14 PM, Sudershan Malpani <
sudershan.malpani@gmail.com> wrote:

> Hi all,
>
> I am calling an object which in turn is calling a method inside a map RDD
> in spark. While writing the tests how can I mock that object's call?
> Currently I did doNothing().when(class).method() is called but it is giving
> task not serializable exception. I tried making the class both spy and mock.
>
> Sudershan Malpani
> Sent from my iPhone
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
> For additional commands, e-mail: dev-help@spark.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message