Changeset 9fad934


Ignore:
Timestamp:
Jul 26, 2015 7:45:49 AM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
c451014
Parents:
841e27f
Message:

Add Mockito library hooks

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/build.xml

    r841e27f r9fad934  
    148148        <echo message="[DEBUG] junit home before override is ${junit.home}" />
    149149        <echo message="[DEBUG] hamcrest home before override is ${hamcrest.home}" />
     150        <echo message="[DEBUG] mockito home before override is ${mockito.home}" />
    150151
    151152        <property name="junit.home" value="${ant.home}/lib" />
    152153        <property name="hamcrest.home" value="${ant.home}/lib" />
     154        <property name="mockito.home" value="${ant.home}/lib" />
    153155
    154156        <echo message="[DEBUG] junit home after override is ${junit.home}" />
    155157        <echo message="[DEBUG] hamcrest home after override is ${hamcrest.home}" />
     158        <echo message="[DEBUG] mockito home after override is ${mockito.home}" />
    156159
    157160        <javac
     
    165168                <pathelement location="${hamcrest.home}/hamcrest.jar" />
    166169                <pathelement location="${hamcrest.home}/hamcrest-all.jar" />
     170                <pathelement location="${mockito.home}/byte-buddy.jar" />
     171                <pathelement location="${mockito.home}/objenesis.jar" />
     172                <pathelement location="${mockito.home}/mockito-core.jar" />
    167173            </classpath>
    168174            <compilerarg line="${javac.compilerargs}" />
     
    205211        <property name="junit.home" value="${ant.home}/lib" />
    206212        <property name="hamcrest.home" value="${ant.home}/lib" />
     213        <property name="mockito.home" value="${ant.home}/lib" />
    207214
    208215        <junit printsummary="withOutAndErr" fork="yes" showoutput="yes" >
     
    214221                <pathelement location="${hamcrest.home}/hamcrest-integration.jar" />
    215222                <pathelement location="${hamcrest.home}/hamcrest-all.jar" />
     223                <pathelement location="${mockito.home}/byte-buddy.jar" />
     224                <pathelement location="${mockito.home}/objenesis.jar" />
     225                <pathelement location="${mockito.home}/mockito-core.jar" />
    216226                <pathelement location="${junit.home}/junit4.jar" />
    217227                <pathelement location="./build/obj_cobertura" />
  • build.properties

    r841e27f r9fad934  
    8989#hamcrest.home=
    9090
     91# Location of the mockito libraries
     92# Defaults to the ant library path if not set
     93# If set, this must point to a directory containing the files
     94#       mockito-core.jar, byte-buddy.jar, objenesis.jar
     95#mockito.home=
     96
    9197# Optional properties used in tests to enable additional tools.
    9298#with.cobertura=/PATH/TO/cobertura.jar
Note: See TracChangeset for help on using the changeset viewer.