Skip to content

Commit dd98770

Browse files
authored
Merge pull request #64 from AutomateThePlanet/navramov_MM
Add missing dependencies
2 parents 9795c33 + 7093bc4 commit dd98770

File tree

4 files changed

+23
-0
lines changed
  • bellatrix.android
  • bellatrix.core/src/main/java/solutions/bellatrix/core/utilities
  • bellatrix.ios
  • framework-tests/bellatrix.playwright.tests

4 files changed

+23
-0
lines changed

bellatrix.android/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,11 @@
6666
<version>4.0.1</version>
6767
<scope>compile</scope>
6868
</dependency>
69+
<dependency>
70+
<groupId>solutions.bellatrix</groupId>
71+
<artifactId>bellatrix.plugins.opencv</artifactId>
72+
<version>1.0</version>
73+
<scope>compile</scope>
74+
</dependency>
6975
</dependencies>
7076
</project>

bellatrix.core/src/main/java/solutions/bellatrix/core/utilities/Wait.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public static void retry(Runnable action, Class<? extends Throwable> ... excepti
3636
}
3737

3838
public static boolean retry(Runnable action, Duration timeout, Duration sleepInterval, Boolean shouldThrowException, Class<? extends Throwable> ... exceptionsToIgnore) {
39+
40+
if(sleepInterval.toMillis() > timeout.toMillis()) {
41+
throw new IllegalArgumentException("Sleep interval cannot be bigger than Total timeout.");
42+
}
43+
3944
long start = System.currentTimeMillis();
4045
long end = start + timeout.toMillis();
4146
boolean shouldThrow = false;

bellatrix.ios/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
<version>1.0</version>
5555
<scope>compile</scope>
5656
</dependency>
57+
<dependency>
58+
<groupId>solutions.bellatrix</groupId>
59+
<artifactId>bellatrix.plugins.opencv</artifactId>
60+
<version>1.0</version>
61+
<scope>compile</scope>
62+
</dependency>
5763
</dependencies>
5864

5965
</project>

framework-tests/bellatrix.playwright.tests/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
<version>1.0-SNAPSHOT</version>
2121
<scope>compile</scope>
2222
</dependency>
23+
<dependency>
24+
<groupId>solutions.bellatrix</groupId>
25+
<artifactId>bellatrix.plugins.opencv</artifactId>
26+
<version>1.0</version>
27+
<scope>test</scope>
28+
</dependency>
2329
</dependencies>
2430

2531
</project>

0 commit comments

Comments
 (0)