Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: We're on Mockito now. Don't use EasyMock for new code. Convert EasyMock code when touching anyway.

Introduction

Magnolia uses JUnit 4 tests and EasyMock Mockito (new) for creating unit tests. Before we were using EasyMock for dynamic mocks.
Old

EasyMock

...

Mockito

Mockito is a more recent mocking library. We'll not convert existing EasyMock-Tests as this would be to big an effort. Instead we set up the following rules:

  • all new tests requiring dynamic mocks use Mockito
  • whenever you touch (fix, adapt, complete) an existing test that's using EasyMock: convert it to Mockito

Magnolia Mocking overview

...