Mockito.
Mock objects library for java.
Here is the list of declaration for mockito-core. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>1.7</version> </dependency>
If you think this Maven repository POM file listing for mockito-core is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:The MIT License
URL: http://code.google.com/p/mockito/wiki/License.
The mockito-core-1.7 has 2 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
Development | objenesis 1.0 A library for instantiating Java objects | 48 |
The following packages are defined in the mockito-core-1.7.jar
org.mockito org.mockito.asm org.mockito.asm.signature org.mockito.cglib.beans org.mockito.cglib.core org.mockito.cglib.proxy org.mockito.cglib.reflect org.mockito.cglib.transform org.mockito.cglib.transform.impl org.mockito.cglib.util org.mockito.configuration org.mockito.configuration.experimental org.mockito.exceptions org.mockito.exceptions.base org.mockito.exceptions.cause org.mockito.exceptions.misusing org.mockito.exceptions.verification org.mockito.exceptions.verification.junit org.mockito.internal org.mockito.internal.configuration org.mockito.internal.creation org.mockito.internal.creation.cglib org.mockito.internal.creation.jmock org.mockito.internal.debugging org.mockito.internal.experimental org.mockito.internal.invocation org.mockito.internal.matchers org.mockito.internal.matchers.apachecommons org.mockito.internal.progress org.mockito.internal.returnvalues org.mockito.internal.stubbing org.mockito.internal.util org.mockito.internal.verification org.mockito.internal.verification.api org.mockito.internal.verification.checkers org.mockito.invocation org.mockito.runners org.mockito.stubbing
Here is the content of the POM file.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>1.7</version> <name>Mockito</name> <url>http://www.mockito.org</url> <description>Mock objects library for java</description> <licenses> <license> <name>The MIT License</name> <url>http://code.google.com/p/mockito/wiki/License</url> <distribution>repo</distribution> </license> </licenses> <scm> <url>http://code.google.com/p/mockito/source/browse/</url> </scm> <dependencies> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-core</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.objenesis</groupId> <artifactId>objenesis</artifactId> <version>1.0</version> </dependency> </dependencies> </project>