Skip to content

Commit

Permalink
Updating the version of the patience dependency and assorted others
Browse files Browse the repository at this point in the history
  • Loading branch information
littleclay committed Dec 13, 2019
1 parent 07445a1 commit 97298fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To install, you can simply include the dependency from Maven Central:
<dependency>
<groupId>com.redfin</groupId>
<artifactId>insist</artifactId>
<version>4.2.0</version>
<version>4.3.0</version>
<scope>test</scope>
</dependency>
```
Expand Down
17 changes: 9 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.redfin</groupId>
<artifactId>insist</artifactId>
<version>4.2.0</version>
<version>4.3.0</version>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

Expand Down Expand Up @@ -67,8 +67,8 @@
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>
<min.java.version>1.8</min.java.version>
<junit.platform.version>1.4.1</junit.platform.version>
<junit.jupiter.version>5.4.1</junit.jupiter.version>
<junit.platform.version>1.5.2</junit.platform.version>
<junit.jupiter.version>5.5.2</junit.jupiter.version>
</properties>

<!-- Code Dependencies - Version Management -->
Expand All @@ -83,17 +83,18 @@
<dependency>
<groupId>com.redfin</groupId>
<artifactId>patience</artifactId>
<version>4.0.0</version>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.opentest4j</groupId>
<artifactId>opentest4j</artifactId>
<version>1.0.0</version>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -205,7 +206,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>1.6</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand All @@ -230,7 +231,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<version>2.22.2</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.redfin.insist.InsistCompletableWaitFuture;
import com.redfin.insist.InsistExecutable;
import com.redfin.insist.InsistFuture;
import com.redfin.patience.DelaySuppliers;
import com.redfin.patience.PatientDelaySuppliers;
import com.redfin.patience.PatientExecutionHandlers;
import com.redfin.patience.PatientRetry;
import com.redfin.patience.PatientWait;
Expand Down Expand Up @@ -51,14 +51,14 @@ public final class InsistVerifiableFactory<X extends Throwable>
.withInitialDelay(Duration.ZERO)
.withDefaultTimeout(Duration.ZERO)
.withExecutionHandler(PatientExecutionHandlers.ignoringAll())
.withDelaySupplier(DelaySuppliers.fixed(Duration.ofMillis(500)))
.withDelaySupplier(PatientDelaySuppliers.fixed(Duration.ofMillis(500)))
.build();

private static final PatientRetry DEFAULT_RETRY = PatientRetry.builder()
.withInitialDelay(Duration.ZERO)
.withDefaultNumberOfRetries(0)
.withExecutionHandler(PatientExecutionHandlers.ignoringAll())
.withDelaySupplier(DelaySuppliers.fixed(Duration.ofMillis(500)))
.withDelaySupplier(PatientDelaySuppliers.fixed(Duration.ofMillis(500)))
.build();

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 97298fc

Please sign in to comment.