You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2020/02/28 14:13:15 UTC

[myfaces] branch master updated: fixed cocurrent test execution

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

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new 3473e8c  fixed cocurrent test execution
3473e8c is described below

commit 3473e8c04162fbfbd83715bfab1e6234a58983df
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Fri Feb 28 15:12:43 2020 +0100

    fixed cocurrent test execution
---
 .../java/org/apache/myfaces/application/ViewIdSupportMockTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/impl/src/test/java/org/apache/myfaces/application/ViewIdSupportMockTest.java b/impl/src/test/java/org/apache/myfaces/application/ViewIdSupportMockTest.java
index 071a370..c2c5403 100644
--- a/impl/src/test/java/org/apache/myfaces/application/ViewIdSupportMockTest.java
+++ b/impl/src/test/java/org/apache/myfaces/application/ViewIdSupportMockTest.java
@@ -21,6 +21,7 @@ package org.apache.myfaces.application;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
 
 import javax.faces.FacesException;
 
@@ -40,7 +41,7 @@ public class ViewIdSupportMockTest extends FacesTestCase
         super.setUp();
 
         Mockito.when(_facesContext.getExternalContext()).thenReturn(_externalContext);
-        Mockito.when(_externalContext.getApplicationMap()).thenReturn(new HashMap<String, Object>());
+        Mockito.when(_externalContext.getApplicationMap()).thenReturn(new ConcurrentHashMap<String, Object>());
 
         viewIdSupport = ViewIdSupport.getInstance(_facesContext);
     }