2 Replies Latest reply on May 5, 2010 10:36 AM by bosschaert

    Use of mocking framework in unit tests?

    bosschaert

      Hi all,

       

      Was wondering whether the use of mock frameworks such as EasyMock or Mockito was ever considered for JBoss OSGi unit tests? I've used both quite a bit in the past and they can be really handy setting up stuff like BundleContext and the like for pure unit tests. EasyMock is Apache 2 licensed and Mockito has an MIT license so from a licensing point of view they're fine I think.

      WRT to functionality they're quite similar, Mockito has a slightly more intuitive syntax but both are very useful...

       

      Cheers,

       

      David