Lmock

vc-statlevelconfig

Version: 1.0.0   |   File Size: 127KB   |   Upload Date: 11/22/2011

This fling is covered under the Apache Software License 2.0.

    
10,811 views   |  
(1 votes)
  |     |     |  
Tags: , , , ,

Lmock is another mocking framework for Java, initially targeting Google's Android OS, but actually works on any environment. Details on what a mocking framework is for can be found on the wikipedia article: http://en.wikipedia.org/wiki/Mock_object Although many frameworks are already available, none of them seems to give satisfying results to Android developers. They are either difficult to integrate or not usable at all. Lmock was thought as a multi-platform mocking system, working from common Java environments (JRE 5/6 + JUnit 3/4) to Android. Lmock integrates a simple programming model to test multi-threaded applications.

Features

Lmock integrates the common features of mocking systems:
  • Possibility to create stubs on specific methods
  • Possibility to specify expectations so that the test checks if an invocation actually happens
Lmock comes up with two possible syntaxes:
  • "JMock" style: explicitly declare the different resources contributing to the test
  • "Mockito" style: uses spies in the code, in order to create expectations and stubs on the fly
Read the full documentation

Java (1.6 or 1.7) or Android SDK to develop JUnit tests.

Lmock is delivered as a JAR file, and so should be integrate in the projects like any other jar.

Read the full documentation.


Comments

  1. Support

    David Furodet
    says:

    For any question or support request, please send an e-mail to: lmock@vmware.com

  2. Quick tutorial about Lmock

    David Furodet
    says:

    You can find a quick tutorial on Lmock's github wiki: https://github.com/vmware/lmock/wiki
    For more detailed documentation, see the pdf files under the doc directory of the source code.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>