You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2016/04/24 15:51:08 UTC

[3/4] wicket git commit: Simplify and use non-deprecated contructor of org.junit.rules.Timeout rule

Simplify and use non-deprecated contructor of org.junit.rules.Timeout rule


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/48f663d2
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/48f663d2
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/48f663d2

Branch: refs/heads/master
Commit: 48f663d2ac3e86d0c46bf317ff0d3c476bfe5456
Parents: 1df79c4
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Sun Apr 24 13:08:37 2016 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Sun Apr 24 13:08:37 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/wicket/page/PageAccessSynchronizerTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/48f663d2/wicket-core/src/test/java/org/apache/wicket/page/PageAccessSynchronizerTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/page/PageAccessSynchronizerTest.java b/wicket-core/src/test/java/org/apache/wicket/page/PageAccessSynchronizerTest.java
index b5f7967..e2053df 100644
--- a/wicket-core/src/test/java/org/apache/wicket/page/PageAccessSynchronizerTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/page/PageAccessSynchronizerTest.java
@@ -20,6 +20,7 @@ import java.util.Random;
 import java.util.concurrent.ConcurrentLinkedQueue;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import org.apache.wicket.MockPage;
@@ -46,7 +47,7 @@ public class PageAccessSynchronizerTest extends Assert
 
 	/**	 */
 	@Rule
-	public Timeout globalTimeout = new Timeout((int)Duration.seconds(30).getMilliseconds());
+	public Timeout globalTimeout = new Timeout(30, TimeUnit.SECONDS);
 
 	/**
 	 * @throws Exception