Allon Mureinik has uploaded a new change for review.

Change subject: core: RandomUtilsSeedingRule JUnit 4.10 upgrade
......................................................................

core: RandomUtilsSeedingRule JUnit 4.10 upgrade

Extended TestWatcher instead of the deprecated TestWatchman.

Change-Id: I5b36679f449fc6a794c002da511affe7f715ca56
Signed-off-by: Allon Mureinik <amure...@redhat.com>
---
M 
backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/RandomUtilsSeedingRule.java
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/13/9713/1

diff --git 
a/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/RandomUtilsSeedingRule.java
 
b/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/RandomUtilsSeedingRule.java
index adc1f78..37ebcc6 100644
--- 
a/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/RandomUtilsSeedingRule.java
+++ 
b/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/RandomUtilsSeedingRule.java
@@ -1,7 +1,7 @@
 package org.ovirt.engine.core.utils;
 
-import org.junit.rules.TestWatchman;
-import org.junit.runners.model.FrameworkMethod;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
 import org.ovirt.engine.core.compat.LongCompat;
 import org.ovirt.engine.core.utils.log.Log;
 import org.ovirt.engine.core.utils.log.LogFactory;
@@ -16,11 +16,11 @@
  * mvn clean install -Dtest.random.seed=123
  * </code>
  */
-public class RandomUtilsSeedingRule extends TestWatchman {
+public class RandomUtilsSeedingRule extends TestWatcher {
     private static final String RANDOM_SEED_PROPERTY = "test.random.seed";
 
     @Override
-    public void starting(FrameworkMethod method) {
+    public void starting(Description description) {
         String seedProperty = System.getProperty(RANDOM_SEED_PROPERTY);
         Long seed = LongCompat.tryParse(seedProperty);
         if (seed == null) {


--
To view, visit http://gerrit.ovirt.org/9713
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b36679f449fc6a794c002da511affe7f715ca56
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amure...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to