Hi all, When i mock the Initial Context class and run the testmethod i get the following error: testinitLandscapeName failed: javax.lang.InitialContext is not an interface java.lang.IllegalArgumentException
EasyMock can only mock interfaces, as the error message indicates. There is an extension available that you can use to also mock classes. Never used it, though, so I can't comment on its usability.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
posted 10 years ago
Hey, thanks for that..i will try it out
You don't like waffles? Well, do you like this tiny ad?
how do I do my own kindle-like thing - without amazon