Jmock1 version 1.2.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.2.0

      View the most recent changes for the jmock1 port at: jmock1.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for jmock1.
      The raw portfile for jmock1 1.2.0 is located here:
      http://jmock1.darwinports.com/dports/java/jmock1/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/jmock1


      The jmock1 Portfile 44883 2009-01-04 12:36:18Z toby macports.org $

      PortSystem 1.0

      Name: jmock1
      Version: 1.2.0
      Category: java
      Platform: darwin
      Maintainers: blair

      Description: Library for testing Java code using mock objects
      Long Description: jMock is a library that supports test-driven development of Java code with mock objects. Mock objects help you design and test the interactions between the objects in your programs.
      Homepage: http://www.jmock.org/

      Master Sites: ${homepage}dist
      distfiles jmock-${version}-jars.zip jmock-${version}-javadoc.zip
      Checksums: jmock-${version}-jars.zip md5 551c531f7fe36ac2fb0f4e9354be1a82 sha1 b1fa7cb1fe4acaacc67b8d37bb2bcc563bc63ea7 rmd160 0cc4683285615875e39fc654222b133b2fb1bf82 jmock-${version}-javadoc.zip md5 1ee41636ec18fa68dc8881dbec9b3879 sha1 0944d4850b12375811dd9b4974fb70f6ac877c22 rmd160 7895cd7895ef1721f7f32948d540dc10637b7a8e
      use_zip yes

      worksrcdir .

      depends_lib bin:java:kaffe

      use_configure no

      build.cmd true

      destroot {
      set javadir ${destroot}${prefix}/share/java
      set docdir ${destroot}${prefix}/share/doc/${name}

      xinstall -d -m 755 ${javadir}
      xinstall -d -m 755 ${docdir}

      file copy ${workpath}/jmock-core-${version}.jar ${javadir}/jmock1-core.jar
      file copy ${workpath}/jmock-cglib-${version}.jar ${javadir}/jmock1-cglib.jar
      file copy ${workpath}/javadoc-${version} ${docdir}/api
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/jmock1
      % sudo port install jmock1
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching jmock1
      ---> Verifying checksum for jmock1
      ---> Extracting jmock1
      ---> Configuring jmock1
      ---> Building jmock1 with target all
      ---> Staging jmock1 into destroot
      ---> Installing jmock1
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using jmock1 with these commands:
      %  man jmock1
      % apropos jmock1
      % which jmock1
      % locate jmock1

     Where to find more information:

    Darwin Ports



    Lightbox this page.