You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by jb...@apache.org on 2021/02/14 05:21:44 UTC

[aries] branch trunk updated: [ARIES-2038] Upgrade to easymock 4.2

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/aries.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 91f9dc6  [ARIES-2038] Upgrade to easymock 4.2
91f9dc6 is described below

commit 91f9dc6b30f8b9f61c72e43047e977977354ddfd
Author: jbonofre <jb...@apache.org>
AuthorDate: Sun Feb 14 06:21:15 2021 +0100

    [ARIES-2038] Upgrade to easymock 4.2
---
 blueprint/blueprint-core/pom.xml                                        | 2 +-
 .../test/java/org/apache/aries/blueprint/utils/ReflectionUtilsTest.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/blueprint/blueprint-core/pom.xml b/blueprint/blueprint-core/pom.xml
index 1776218..e5373d7 100644
--- a/blueprint/blueprint-core/pom.xml
+++ b/blueprint/blueprint-core/pom.xml
@@ -185,7 +185,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>3.2</version>
+            <version>4.2</version>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/utils/ReflectionUtilsTest.java b/blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/utils/ReflectionUtilsTest.java
index cfc3ad9..1c29927 100644
--- a/blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/utils/ReflectionUtilsTest.java
+++ b/blueprint/blueprint-core/src/test/java/org/apache/aries/blueprint/utils/ReflectionUtilsTest.java
@@ -59,7 +59,7 @@ public class ReflectionUtilsTest {
     public static void before() throws ClassNotFoundException
     {
         mockBlueprint = EasyMock.createNiceMock(ExtendedBlueprintContainer.class);
-        final Capture<String> nameCapture = new Capture<String>();
+        final Capture<String> nameCapture = Capture.newInstance();
         EasyMock.expect(mockBlueprint.loadClass(EasyMock.capture(nameCapture))).andAnswer(new IAnswer<Class<?>>() {
             public Class<?> answer() throws Throwable {
                 return Thread.currentThread().getContextClassLoader().loadClass(nameCapture.getValue());