forked from I2P_Developers/i2p.i2p
Add Mockito library hooks
This commit is contained in:
@@ -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" />
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user