Loading ...
Sorry, an error occurred while loading the content.

1668EasyMock 3.2 is out!

Expand Messages
  • Henri Tremblay
    Jul 10, 2013
    • 0 Attachment
      Hello everyone,

      I'm really proud to announce that EasyMock 3.2 was just released.

      To main features:

      Android support
      Is it now possible to use EasyMock on Android. Thanks to Jesse Wilson for his help on that topic.

      @Mock and @TestSubject annotations
      A long awaited feature allowing to do code like this:

      @RunWith(EasyMockRunner.class)
      public class AnnotatedMockTest extends EasyMockSupport {

          @TestSubject
          private final ClassTested classUnderTest = new ClassTested();

          @Mock
          private Collaborator collaborator;

          @Test
          public void addDocument() {
              collaborator.documentAdded("New Document");
              replayAll();
              classUnderTest.addDocument("New Document", new byte[0]);
              verifyAll();
          }
      }

      The complete release notes:
      http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=12103&version=17851

      Enjoy! (and looking forward for your feedback)
      Henri