Mock « Testing « Java Products

Java Products
1. Application
2. Business
3. Byte Source Code
4. Component
5. Data File
6. Database
7. Development
8. Graph Image Diagram Movie
9. GUI Tools
10. J2EE Web Development
11. Misc
12. Net Web Mobile
13. Programming
14. Science
15. Server Side JSP Servlet
16. Swing
17. Testing
18. Utilities
19. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Products » Testing » Mock 
1. Mock
By:
License:
URL:http://https://mocquer.dev.java.net/
Description:Mock is a widely used technology in unit test domain. It shields exteral and unnecessary factors and helps developers focus on the specific function to be tested. EasyMock is a well known mock tool which can create mock object for given interface at runtime. The mock object's behavior can be fine defined prior the test code in the test case. EasyMock is based on java.lang.reflect.Proxy, which can create dynamic proxy class/object according to the given interfaces. It has the inherent limitation from the Proxy. It can create mock object for given interface only.


2. mocklib
By:
License:Apache Software License
URL:http://mocklib.sourceforge.net
Description:This is a very small library but powerful enough to create most of your mockobjects for you. The ones it can't create, you can leverage the library to create.


3. MockCreator
By:
License:GNU Library or Lesser General Public License (LGPL)
URL:http://mockcreator.sourceforge.net/
Description: What is the MockCreator? MockCreator, first coded at German company Abstrakt Gmbh, and enhanced by me, Vladimir Dyuzhev, is the generator of mocks. Given an interface or a class, it generates source of mock class for it. The main idea of MockCreator development was to reduce knowledge of real code logic required to write a test. When a number of tests reaches a few hundrends, it's often becomes too complex to support them since minor changes in real code often require to alter a bunch of unit tests. This is because test code often relays too much on, say, order of calls to setters (which supposed to be independent) or exact value of parameter (when actually it can be slightly more or less, like current time).


4. EasyMock
By:
License:MIT License
URL:http://www.easymock.org/
Description:EasyMock provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development.


5. jMock
By:
License:BSD License
URL:http://www.jmock.org/
Description:jMock is a library for testing Java code using mock objects1. Mock objects help you design and test the interactions between the objects in your programs. The jMock package: * makes it quick and easy to define mock objects, so you don't break the rhythm of programming. * lets you define flexible constraints over object interactions, reducing the brittleness of your tests. * is easy to extend.


6. Mockrunner
By:
License:Apache Software License
URL:http://mockrunner.sourceforge.net/index.html
Description: Mockrunner is a lightweight framework for unit testing applications in the J2EE environment. It supports servlets, filters, tag classes and Struts actions and forms. Furthermore it includes a JDBC, a JMS and a JCA test framework and can be used in conjunction with MockEJB to test EJB based applications. Mockrunner extends JUnit and simulates the necessary behaviour without calling the real infrastructure. It does not need a running application server or a database. Furthermore it does not call the webcontainer or the Struts ActionServlet. It is very fast and enables the user to manipulate all involved classes and mock objects in all steps of the test. It can be used to write very sophisticated unit-tests for J2EE based applications without any overhead. Mockrunner does not support any type of in-container testing.


www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.