Fixed bug where a public "@Mock $init(...)" method in a public mock-up class would inadvertently execute the mocked constructor. Closes #59.
Refactoring: eliminated unnecessary "Class" fields in favor of directly referencing the classes.
Minor updates to pom.xml files.
Added check to avoid inadvertent "beforeInvocation" call from TestNG when running a JUnit test. Closes #4.
Added exclusion of subclasses generated by CGLIB from coverage and from capturing.
Fixed a performance regression when running on Java 8.
Fixed bug affecting startup mock-ups. Closes #62.
Changed the way that calls to mocked methods from outside an Expectations subclass were handled, to return the empty default value instead of throwing an IllegalStateException.
Moved validation against invalid place to verify expectations to where it actually can be detected.
Replaced exception with assert, since it never occurs anyway.
Refactoring: extracted method.
Enhancement: partially mocked classes now always cascade.
Excluded mocking from EDT, for robustness.
Enhancements related to cascaded mocking: cascading is now default; added "cascading" attribute to @Mocked; deprecated @Cascading; dynamic partial mocks also cascade now; mocked instances of subclasses now used as cascaded instances for the base type.
Updated sample tests for cascading by default.