Lmock is a project mainly written in Java, based on the Apache-2.0 license.
LMock is a mocking framework working on any java environment, including Android
Thanks for downloading Lmock. This README file contains directives about how to play with those sources.
The main directories of this project are:
The examples sub-directory contains informal examples of JUnit tests that do not necessarily pass. The tests are aimed to run on a basic java environment with JUnit4. For Android, you should use the converter provided by tool/send2Droid, as explained later in this document.
You may edit Lmock with your favorite IDE:
You may also use the provided makefile to rebuild Lmock.
The build process assumes that you have the following in your path:
For other tools (emma test coverage and junit) we provide a copy of the proper jar files in the tools.
When typing make, the following happens:
The second run of tests generates a coverage report, using emma.
As a result, you get:
You have to decide where to create that project (e.g. MYDIR). Invoke tools/send2Droid MYDIR to get the following result:
NOTE: notice that today, two test fail in Android... In fact, it's not actually a failure: we get what we expect, but not in the way we were expecting it. The bug fix is a work in progress.
For any question or support request, please send an e-mail to: [email protected].
Enjoy!