diff options
author | Artur Signell <artur@vaadin.com> | 2016-09-30 10:54:28 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-09-30 10:58:58 +0300 |
commit | d6967afcbc87836464b39b22b2d424a336403952 (patch) | |
tree | c87aac360b9f4dec9d3fe15001c91c1bda70b256 /uitest-common | |
parent | d36d63fefa3ab9f4908f97772bcc6499e4f52532 (diff) | |
download | vaadin-framework-d6967afcbc87836464b39b22b2d424a336403952.tar.gz vaadin-framework-d6967afcbc87836464b39b22b2d424a336403952.zip |
Fix parameterized runner to be compatible with TestBench 4.1
Change-Id: I288ad11ad26cedd4495d472ba23276b6bf25ccdf
Diffstat (limited to 'uitest-common')
-rw-r--r-- | uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java b/uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java index 25261584d2..20107f8058 100644 --- a/uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java +++ b/uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java @@ -22,6 +22,7 @@ import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import org.junit.runners.Parameterized.Parameters; import org.junit.runners.model.FrameworkMethod; @@ -162,5 +163,19 @@ public class ParameterizedTB3Runner extends TB3Runner { return parent.getName() + "[" + value + "]"; }; + @Override + public boolean equals(Object obj) { + if (!TBMethodWithBefore.class.isInstance(obj)) { + return false; + } + + TBMethodWithBefore otherTbMethod = (TBMethodWithBefore) obj; + + return super.equals(obj) + && Objects.equals(otherTbMethod.parent, parent) + && Objects.equals(otherTbMethod.setter, setter) + && Objects.equals(otherTbMethod.value, value); + } + } } |