You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a bug in EasyMock that treats methods called in the ctor as mocked even though they're not. In these cases it would be good to simply be able to suppress the methods called in the ctor. But since mocking has precedence over suppressing/stubbing this is not possible. This should be an easy fix in MockGateway.
Hudson hudsonMockedInstance = createPartialMock(Hudson.class, new String[]{ "getRootDir", "getMe" }, new Object[]{ currentTestDirectory, (ServletContext)null }); // Here, the IllegalArgumentException is thrown, saying getExtensionList behaviour has not been defined
* upstream/master:
Update changelog.txt
Fixpowermock#634 java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
More TestNG tests.
Update dependencies
Throw exception on mockStatic if the class wasn't prepared for test (@PrepareForTest(ClassWithStatic.class)). Implemented # 604 for: -mockito junit -mockito testng
Throw exception on when(Class c) if class wasn't prepared for test (@PrepareForTest(ClassWithStatic.class)) Implemented # 622 for: - Mockito jUnit - Mockito TestNG
Add usage and dependencies statistic
Update link in test source for issue powermock#105
Stubbing/supressing should have precedence over mocking powermock#327
Update changelog.txt
powermock-590 suppress(method) doesn't work on a @SPY
powermock-572 Enable @PrepareForTest on enums
Add guidelines for managing GitHub issues
Update change log.
powermock-214 Whitebox.invokeConstructor may not work as expected with overloaded constructors Fixpowermock#214
Update README.md
From johan.ha...@gmail.com on January 03, 2011 09:43:19
There's a bug in EasyMock that treats methods called in the ctor as mocked even though they're not. In these cases it would be good to simply be able to suppress the methods called in the ctor. But since mocking has precedence over suppressing/stubbing this is not possible. This should be an easy fix in MockGateway.
Hudson hudsonMockedInstance = createPartialMock(Hudson.class, new String[]{ "getRootDir", "getMe" }, new Object[]{ currentTestDirectory, (ServletContext)null }); // Here, the IllegalArgumentException is thrown, saying getExtensionList behaviour has not been defined
Original issue: http://code.google.com/p/powermock/issues/detail?id=307
The text was updated successfully, but these errors were encountered: