summaryrefslogtreecommitdiffstats
path: root/uitest-common
diff options
context:
space:
mode:
Diffstat (limited to 'uitest-common')
-rw-r--r--uitest-common/src/main/java/com/vaadin/tests/tb3/ParameterizedTB3Runner.java15
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);
+ }
+
}
}