ClassCastException using ArgumentCapture for Double in scala

后端 未结 1 869
清歌不尽
清歌不尽 2021-01-25 01:01

I\'m having a problem using ArgumentCapture for a Double in scala. I\'m trying to capture a Double argument to a mocked trait. The same sy

1条回答
  •  时光说笑
    2021-01-25 01:36

    I had similar problem. This should fix it I believe:

    val capturedDouble = ArgumentCaptor.forClass(classOf[java.lang.Double])
    

    0 讨论(0)
提交回复
热议问题