Maven Repository - POM file for Android robolectric 1.0 1.0

Summary

Robolectric.

An alternative Android testing framework..

Declaration

Here is the list of declaration for robolectric. If you use Maven you can use the following code to add the dependency for this POM file.

<dependency>
   <groupId>com.pivotallabs</groupId>
   <artifactId>robolectric</artifactId>
   <version>1.0</version>
</dependency>

If you think this Maven repository POM file listing for robolectric is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

License

Name:MIT license.

Depends on

The robolectric-1.0 has 11 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.

CategoryArtifactDepended By Count
Testinghamcrest-core 1.2
This is the core API of hamcrest matcher framework to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations.
39
JUnitjunit 4.8.2
JUnit is a regression testing framework. It is used by the developer who implements unit tests in Java.
919
Developmentobjenesis 1.0
A library for instantiating Java objects
48
Databaseh2 1.2.147
H2 Database Engine
49
Filejavassist 3.14.0-GA
Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation simple. It is a class library for editing bytecodes in Java.
15
Logcommons-logging 1.1.1
Commons Logging is a thin adapter allowing configurable bridging to other, well known logging systems.
1143
Data Structurecommons-codec 1.3
The codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.
348
Httphttpclient 4.0.3
HttpComponents Client (base module)
21
Androidandroid 2.3.3
A library jar that provides APIs for Applications written for the Google Android Platform.
11
Testing Mockmockito-core 1.8.5
Mock objects library for java
303




Plugin

The following plugins are used in the robolectric-1.0.jar

  1. maven-assembly-plugin
  2. maven-clean-plugin
  3. maven-compiler-plugin
  4. maven-jar-plugin
  5. maven-source-plugin
  6. maven-surefire-plugin

Packages

The following packages are defined in the robolectric-1.0.jar

android.content
android.net
android.os
android.view.animation
com.xtremelabs.robolectric
com.xtremelabs.robolectric.annotation
com.xtremelabs.robolectric.bytecode
com.xtremelabs.robolectric.internal
com.xtremelabs.robolectric.matchers
com.xtremelabs.robolectric.res
com.xtremelabs.robolectric.shadows
com.xtremelabs.robolectric.tester.android.content
com.xtremelabs.robolectric.tester.android.content.pm
com.xtremelabs.robolectric.tester.android.database
com.xtremelabs.robolectric.tester.android.util
com.xtremelabs.robolectric.tester.android.view
com.xtremelabs.robolectric.tester.org.apache.http
com.xtremelabs.robolectric.util




POM File Source

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>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>5</version>
    </parent>

    <groupId>com.pivotallabs</groupId>
    <artifactId>robolectric</artifactId>
    <version>1.0</version>
    <packaging>jar</packaging>
    <name>Robolectric</name>
    <description>An alternative Android testing framework.</description>
    <url>http://pivotal.github.com/robolectric/</url>

    <dependencies>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.2</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.objenesis</groupId>
            <artifactId>objenesis</artifactId>
            <version>1.0</version>
        </dependency>

        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>1.2.147</version>
        </dependency>

        <dependency>
            <groupId>org.javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.14.0-GA</version>
        </dependency>

        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>

        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
        </dependency>

        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.0.3</version>
        </dependency>

        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>2.3.3</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.google.android.maps</groupId>
            <artifactId>maps</artifactId>
            <version>10_r2</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>1.8.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.1.2</version>
                <configuration />
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <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.6</version>
                <configuration>
                    <excludes>
                        <exclude>**/Test*.java</exclude>
                    </excludes>
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
      <!-- required for testing robolectric-sqlite -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.1</version>
                <executions>
                  <execution>
                    <goals>
                      <goal>test-jar</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>tmp</directory>
                            <includes>
                                <include>*</include>
                            </includes>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>

        </plugins>
    </build>

    <profiles>
        <profile>
            <id>ant-deps</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>clean-dependencies</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <delete dir="${project.basedir}/lib/main" />
                                        <mkdir dir="${project.basedir}/lib/main" />
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-dependencies</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>copy-dependencies</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.basedir}/lib/main</outputDirectory>
                                    <overWriteReleases>false</overWriteReleases>
                                    <overWriteSnapshots>false</overWriteSnapshots>
                                    <overWriteIfNewer>true</overWriteIfNewer>
                                    <excludeArtifactIds>android,maps,mockito-core</excludeArtifactIds>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <scm>
        <url>git@github.com:pivotal/robolectric.git</url>
        <connection>scm:git:git://github.com/pivotal/robolectric.git</connection>
        <developerConnection>scm:git:git@github.com:pivotal/robolectric.git</developerConnection>
    </scm>

    <ciManagement>
        <system>Hudson</system>
        <url>http://cibuilder.pivotallabs.com:8080/job/robolectric/</url>
    </ciManagement>

    

    <mailingLists>
        <mailingList>
            <name>User List</name>
            <post>robolectric@googlegroups.com</post>
            <archive>http://groups.google.com/group/robolectric</archive>
        </mailingList>
    </mailingLists>

    <licenses>
        <license>
            <name>MIT license</name>
            <comments>
                The MIT License

                Copyright (c) 2010 Xtreme Labs and Pivotal Labs

                Permission is hereby granted, free of charge, to any person obtaining a copy
                of this software and associated documentation files (the "Software"), to deal
                in the Software without restriction, including without limitation the rights
                to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                copies of the Software, and to permit persons to whom the Software is
                furnished to do so, subject to the following conditions:

                The above copyright notice and this permission notice shall be included in
                all copies or substantial portions of the Software.

                THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
                THE SOFTWARE.
            </comments>
        </license>
    </licenses>
</project>