Add Mockito library hooks

This commit is contained in:
str4d
2015-07-26 07:45:49 +00:00
parent 841e27f35c
commit 9fad9347c1
2 changed files with 16 additions and 0 deletions

View File

@@ -147,12 +147,15 @@
<echo message="[DEBUG] ant home is ${ant.home}" />
<echo message="[DEBUG] junit home before override is ${junit.home}" />
<echo message="[DEBUG] hamcrest home before override is ${hamcrest.home}" />
<echo message="[DEBUG] mockito home before override is ${mockito.home}" />
<property name="junit.home" value="${ant.home}/lib" />
<property name="hamcrest.home" value="${ant.home}/lib" />
<property name="mockito.home" value="${ant.home}/lib" />
<echo message="[DEBUG] junit home after override is ${junit.home}" />
<echo message="[DEBUG] hamcrest home after override is ${hamcrest.home}" />
<echo message="[DEBUG] mockito home after override is ${mockito.home}" />
<javac
srcdir="./test/junit"
@@ -164,6 +167,9 @@
<pathelement location="${junit.home}/junit4.jar" />
<pathelement location="${hamcrest.home}/hamcrest.jar" />
<pathelement location="${hamcrest.home}/hamcrest-all.jar" />
<pathelement location="${mockito.home}/byte-buddy.jar" />
<pathelement location="${mockito.home}/objenesis.jar" />
<pathelement location="${mockito.home}/mockito-core.jar" />
</classpath>
<compilerarg line="${javac.compilerargs}" />
</javac>
@@ -204,6 +210,7 @@
<property name="junit.home" value="${ant.home}/lib" />
<property name="hamcrest.home" value="${ant.home}/lib" />
<property name="mockito.home" value="${ant.home}/lib" />
<junit printsummary="withOutAndErr" fork="yes" showoutput="yes" >
<sysproperty key="net.sourceforge.cobertura.datafile" file="./cobertura.ser" />
@@ -213,6 +220,9 @@
<pathelement location="${hamcrest.home}/hamcrest-library.jar" />
<pathelement location="${hamcrest.home}/hamcrest-integration.jar" />
<pathelement location="${hamcrest.home}/hamcrest-all.jar" />
<pathelement location="${mockito.home}/byte-buddy.jar" />
<pathelement location="${mockito.home}/objenesis.jar" />
<pathelement location="${mockito.home}/mockito-core.jar" />
<pathelement location="${junit.home}/junit4.jar" />
<pathelement location="./build/obj_cobertura" />
<pathelement location="./build/obj" />

View File

@@ -88,6 +88,12 @@ javac.version=1.6
# hamcrest-core.jar, hamcrest-library.jar, and hamcrest-integration.jar
#hamcrest.home=
# Location of the mockito libraries
# Defaults to the ant library path if not set
# If set, this must point to a directory containing the files
# mockito-core.jar, byte-buddy.jar, objenesis.jar
#mockito.home=
# Optional properties used in tests to enable additional tools.
#with.cobertura=/PATH/TO/cobertura.jar
#with.clover=/PATH/TO/clover.jar