The Artima Developer Community
Sponsored Link

ScalaTest/ScalaUtils Forum
EasyMockSugar does not work with EasyMock3

1 reply on 1 page. Most recent reply: Aug 10, 2010 12:55 AM by Bill Venners

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
sanjiv sahayam

Posts: 2
Nickname: 53683
Registered: Jan, 2008

EasyMockSugar does not work with EasyMock3 Posted: Aug 9, 2010 5:11 PM
Reply to this message Reply
Advertisement
EasyMock 3 has done away with the org.easymock.classextension package. All includes are in the org.easymock package. EasyMockSugar uses org.easymock.classextension.EasyMock for creating mocks.

A simple fix is to use org.easymock.EasyMock for the creation of mocks, as all the mocking has been rolled into this package.

From the EasyMock 3 documentation:


Moving from EasyMock CE to EasyMock 3.0 is straightforward. You need to remove the dependency to EasyMock CE and replace all imports to

org.easymock.classextension.*
by imports to

org.easymock.*
which basically means to remove .classextension from everywhere in your code.


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: EasyMockSugar does not work with EasyMock3 Posted: Aug 10, 2010 12:55 AM
Reply to this message Reply
We'll take a look. I'm disappointed they broke code like this. When ScalaTest changes the package dependency, it will break anyone using EasyMockSugar who hasn't upgraded to 3.0. I hate it when I upgrade one app and that forces me to upgrade another. Maybe we'll add an EasyMock3Sugar.

Flat View: This topic has 1 reply on 1 page
Topic: Getting Started w/JUnit4 & ScalaTest uses JUnit 3 notation Previous Topic   Next Topic Topic: Using Scala 2.8.0 RC2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use