MRUnit.
MRUnit is a Java library that helps developers unit test Apache Hadoop map reduce jobs..
Here is the list of declaration for mrunit. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>org.apache.mrunit</groupId> <artifactId>mrunit</artifactId> <version>0.9.0-incubating</version> </dependency>
If you think this Maven repository POM file listing for mrunit is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Apache License.
The mrunit-0.9.0-incubating has 4 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 |
---|---|---|
JUnit | junit 4.10 JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. | 1957 |
Log | commons-logging 1.1.1 Commons Logging is a thin adapter allowing configurable bridging to other, well known logging systems. | 1143 |
Log | log4j 1.2.15 Apache Log4j 1.2 | 310 |
Testing Mock | mockito-all 1.8.5 Mock objects library for java | 434 |
The following plugins are used in the mrunit-0.9.0-incubating.jar
Here is the content of the POM file.
<!-- * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * --> <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"> <parent> <groupId>org.apache</groupId> <artifactId>apache</artifactId> <version>10</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.mrunit</groupId> <artifactId>mrunit</artifactId> <version>0.9.0-incubating</version> <name>MRUnit</name> <url>http://incubator.apache.org/mrunit/</url> <description> MRUnit is a Java library that helps developers unit test Apache Hadoop map reduce jobs. </description> <issueManagement> <system>JIRA</system> <url>http://issues.apache.org/jira/browse/MRUNIT</url> </issueManagement> <ciManagement> <system>Jenkins</system> <url>http://builds.apache.org/job/mrunit-trunk/</url> </ciManagement> <scm> <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/mrunit/trunk/</connection> <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/mrunit/trunk/</developerConnection> <url>http://svn.apache.org/viewvc/incubator/mrunit/trunk/</url> </scm> <mailingLists> <mailingList> <name>mrunit user</name> <post>mrunit-user@incubator.apache.org</post> <subscribe>mrunit-user-subscribe@incubator.apache.org</subscribe> <unsubscribe>mrunit-user-unsubscribe@incubator.apache.org</unsubscribe> <archive>http://mail-archives.apache.org/mod_mbox/incubator-mrunit-user</archive> </mailingList> <mailingList> <name>mrunit dev</name> <post>mrunit-dev@incubator.apache.org</post> <subscribe>mrunit-dev-subscribe@incubator.apache.org</subscribe> <unsubscribe>mrunit-dev-unsubscribe@incubator.apache.org</unsubscribe> <archive>http://mail-archives.apache.org/mod_mbox/incubator-mrunit-dev</archive> </mailingList> <mailingList> <name>mrunit commits</name> <post>mrunit-commits@incubator.apache.org</post> <subscribe>mrunit-commits-subscribe@incubator.apache.org</subscribe> <unsubscribe>mrunit-commits-unsubscribe@incubator.apache.org</unsubscribe> <archive>http://mail-archives.apache.org/mod_mbox/incubator-mrunit-commits</archive> </mailingList> </mailingLists> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>2.4.1</version> <configuration> <excludeDefaultDirectories>true</excludeDefaultDirectories> <filesets> <fileset> <directory>${project.build.directory}</directory> <excludes> <exclude>*hadoop?.jar</exclude> </excludes> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.8.1</version> <configuration> <redirectTestOutputToFile>true</redirectTestOutputToFile> </configuration> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.8</version> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>check</goal> </goals> <configuration> <excludes> <exclude>BUILD.txt</exclude> <exclude>CHANGES.txt</exclude> <exclude>BIN-NOTICE.txt</exclude> </excludes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <classifier>${envClassifier}</classifier> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8.1</version> <configuration> <excludePackageNames>*.internal</excludePackageNames> </configuration> <executions> <execution> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> <executions> <execution> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.7</version> </plugin> </plugins> </build> <profiles> <profile> <id>hadoop1</id> <activation> <property> <name>!hadoop.version</name> </property> </activation> <properties> <envClassifier>hadoop1</envClassifier> </properties> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency> </dependencies> </profile> <profile> <id>hadoop2</id> <activation> <property> <name>hadoop.version</name> <value>2</value> </property> </activation> <properties> <envClassifier>hadoop2</envClassifier> <specificHadoopVersion>0.23.1</specificHadoopVersion> </properties> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>${specificHadoopVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-mapreduce-client-core</artifactId> <version>${specificHadoopVersion}</version> <scope>provided</scope> </dependency> </dependencies> </profile> <profile> <id>sign</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>dist-src</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <configuration> <tarLongFileMode>gnu</tarLongFileMode> <descriptors> <descriptor>src/main/assembly/src-assembly.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>dist-bin</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <configuration> <tarLongFileMode>gnu</tarLongFileMode> <descriptors> <descriptor>src/main/assembly/bin-assembly.xml</descriptor> </descriptors> <appendAssemblyId>false</appendAssemblyId> </configuration> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> <exclusions> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> </exclusion> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.8.5</version> </dependency> </dependencies> </project>