Java generics and overloading with Groovy

后端 未结 2 713
面向向阳花
面向向阳花 2021-01-13 19:28

I write my unit tests for my Java application with Groovy, JUnit and EasyMock. In EasyMock there are several overloaded methods capture() which have been deprec

相关标签:
2条回答
  • 2021-01-13 19:49

    Just hit this issue myself using EasyMock 3.0. However it looks like it's been resolved as of EasyMock 3.2 by renaming all the methods that took wrapped primitives and leaving just one remaining capture method.

    Check the 3.2 docs for more info: http://easymock.org/api/easymock/3.2/org/easymock/EasyMock.html#capture%28org.easymock.Capture%29

    0 讨论(0)
  • 2021-01-13 19:53

    Try to use @CompileStatic of Groovy 2.0 - may be it will resolve your problem

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