Skip to content

Commit

Permalink
make Runner#setupMaxTimeTimer() public. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmi committed Oct 21, 2019
1 parent d5d2d70 commit 3b556b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/main/java/jp/vmi/selenium/selenese/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,11 @@ default int getMaxRetries() {
*/
default void setMaxRetries(int maxRetries) {
}

/**
* Setup MaxTimeActiveTimer.
* @param maxTime the maxTime in milliseconds.
*/
default void setupMaxTimeTimer(long maxTime) {
}
}
7 changes: 2 additions & 5 deletions src/main/java/jp/vmi/selenium/selenese/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -943,11 +943,8 @@ public void unhighlight() {
}
}

/**
* Setup MaxTimeActiveTimer.
* @param maxTime the maxTime in milliseconds.
*/
void setupMaxTimeTimer(long maxTime) {
@Override
public void setupMaxTimeTimer(long maxTime) {
this.maxTimeTimer = new MaxTimeActiveTimer(maxTime);
}
}

0 comments on commit 3b556b5

Please sign in to comment.