[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-base/master] Add Mockito as dependency.



commit 62a964a7702086ca6ba0e2307809d4f983163b47
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Sep 27 10:30:02 2019 +0200

    Add Mockito as dependency.
    
    Required for #31599, but likely useful for other purposes as well.
---
 java/base.xml         | 2 ++
 java/ivy.xml          | 1 +
 java/junittest.policy | 3 +++
 3 files changed, 6 insertions(+)

diff --git a/java/base.xml b/java/base.xml
index 4ce1660..6cb1693 100644
--- a/java/base.xml
+++ b/java/base.xml
@@ -51,6 +51,8 @@
       <include name="hamcrest-all-1.3.jar"/>
       <include name="logback-core-1.1.9.jar" />
       <include name="logback-classic-1.1.9.jar" />
+      <include name="mockito-core-1.10.19.jar" />
+      <include name="objenesis-2.1.jar" />
     </fileset>
   </path>
 
diff --git a/java/ivy.xml b/java/ivy.xml
index 2860b74..19b2f4b 100644
--- a/java/ivy.xml
+++ b/java/ivy.xml
@@ -18,6 +18,7 @@
     <!-- Unit test and test coverage dependencies. -->
     <dependency org="junit" name="junit" rev="4.12" />
     <dependency org="org.hamcrest" name="hamcrest-all" rev="1.3" />
+    <dependency org="org.mockito" name="mockito-core" rev="1.10.19"/>
 
     <!-- Development tools dependencies that are optional for the build. -->
     <dependency org="com.puppycrawl.tools" name="checkstyle" rev="6.17" />
diff --git a/java/junittest.policy b/java/junittest.policy
index e2f4a26..eb3ea91 100644
--- a/java/junittest.policy
+++ b/java/junittest.policy
@@ -14,4 +14,7 @@ grant {
   permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect";
   permission java.lang.RuntimePermission "accessClassInPackage.sun.net.www.protocol.http";
   permission java.lang.RuntimePermission "accessClassInPackage.sun.net.www.http";
+  permission java.lang.RuntimePermission "getProtectionDomain";
+  permission java.lang.RuntimePermission "reflectionFactoryAccess";
+  permission java.lang.RuntimePermission "setFactory";
 };

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits