Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MockBuilder.addMockedMethod should fail for final methods #55
Migrated from: CodeHaus issue EASYMOCK-44
MockBuilder.addMockedMethod should throw an IllegalArgumentException if the method is final. Currently, the method call seems to succeed, but the method is not mocked, leading to unexpected behaviour (I just fell in this trap). Since as documented mocking of final methods is not supported, trying to mock a final method should fail fast.