EasyMock.
EasyMock provides an easy way to create Mock Objects for interfaces and classes generating them on the fly.
Here is the list of declaration for easymock. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>org.easymock</groupId> <artifactId>easymock</artifactId> <version>3.2</version> </dependency>
If you think this Maven repository POM file listing for easymock is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The easymock-3.2 has 3 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 |
---|---|---|
Byte Code | cglib-nodep 2.2.2 Code generation library with shaded ASM dependecies | 60 |
Development | objenesis 1.3 A library for instantiating Java objects | 15 |
The following table lists the most popular artifacts which are depending on easymock-3.2. Their categories and depend by count are also listed.
Category | Artifact | Depended By Count |
---|---|---|
JUnit | cdi-unit 2.2.1 JUnit runner for testing CDI based projects. | 12 |
Network | ribbon-core 2.0-RC5 ribbon-core developed by Netflix | 8 |
Database | jdbi 2.53 jDBI is designed to provide convenient tabular data access in Java(tm). It uses the Java collections framework for query results, provides a convenient means of externalizing sql statements, and provides named parameter support for any database being used. | 17 |
JUnit | htmlunit 2.14 A headless browser intended for use in testing web-based applications. | 7 |
Business | camel-core 2.13.1 The Core Camel Java DSL based router | 12 |
OSGi | org.apache.felix.scr.generator 1.9.0 Provides the implementation to generate Declarative Services and Metatype Service descriptors from Java 5 Annotations. | 6 |
Data Structure | commons-lang3 3.3.2 Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. | 135 |
Network | ribbon-core 2.0-RC9 ribbon-core developed by Netflix | 7 |
Database | jdbi 2.51 jDBI is designed to provide convenient tabular data access in Java(tm). It uses the Java collections framework for query results, provides a convenient means of externalizing sql statements, and provides named parameter support for any database being used. | 32 |
JUnit | htmlunit 2.15 A headless browser intended for use in testing web-based applications. | 9 |
Business | camel-core 2.13.2 The Core Camel Java DSL based router | 12 |
Business | camel-core 2.12.3 The Core Camel Java DSL based router | 15 |
Data Structure | commons-lang3 3.3 Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. | 11 |
Network | ribbon-core 2.0-RC6 ribbon-core developed by Netflix | 5 |
Data Structure | commons-lang3 3.3.1 Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. | 12 |
Data Structure | commons-lang3 3.2.1 Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. | 31 |
The following plugins are used in the easymock-3.2.jar
The following packages are defined in the easymock-3.2.jar
org.easymock org.easymock.internal org.easymock.internal.matchers
Here is the content of the POM file.
<?xml version="1.0" encoding="ISO-8859-1"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.easymock</groupId> <artifactId>easymock-parent</artifactId> <version>3.2</version> </parent> <artifactId>easymock</artifactId> <packaging>jar</packaging> <name>EasyMock</name> <description>EasyMock provides an easy way to create Mock Objects for interfaces and classes generating them on the fly</description> <inceptionYear>2001</inceptionYear> <organization> <name>OFFIS, Tammo Freese, Henri Tremblay</name> </organization> <dependencies> <!-- Used for class mocking --> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>2.2.2</version> </dependency> <!-- Used for class mocking --> <dependency> <groupId>org.objenesis</groupId> <artifactId>objenesis</artifactId> <version>1.3</version> </dependency> <!-- Used for class mocking on Android (cglib replacement) --> <dependency> <groupId>com.google.dexmaker</groupId> <artifactId>dexmaker</artifactId> <version>1.0</version> <optional>true</optional> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <optional>true</optional> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>${basedir}/src/samples/java</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <configuration> <instructions> <Export-Package>org.easymock.internal.*;poweruser=true;mandatory:=poweruser,org.easymock</Export-Package> <Import-Package>net.sf.cglib.core;resolution:=optional,net.sf.cglib.proxy;resolution:=optional,net.sf.cglib.reflect;resolution:=optional,org.easymock,org.easymock.internal;poweruser=true,org.objenesis;resolution:=optional</Import-Package> </instructions> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>prepare-package</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>fullBuild</id> <build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <configuration> <excludes> <exclude>**/org/easymock/tests/IMethods.java</exclude> <exclude>**/org/easymock/tests/IVarArgs.java</exclude> <exclude>**/org/easymock/tests/Util.java</exclude> <exclude>**/org/easymock/samples/*.java</exclude> </excludes> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>instrument</goal> <goal>clover</goal> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.mycila.maven-license-plugin</groupId> <artifactId>maven-license-plugin</artifactId> </plugin> </plugins> </build> </profile> <profile> <id>deployBuild</id> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>easymock-bundle</id> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>