Skip to content

Commit

Permalink
Fixed unit test.
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Fickel <juergen.fickel@bosch.io>
  • Loading branch information
Juergen Fickel committed Jun 27, 2022
1 parent 361cbab commit c1d7bb2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static org.mutabilitydetector.unittesting.MutabilityAssert.assertInstancesOf;
import static org.mutabilitydetector.unittesting.MutabilityMatchers.areImmutable;

import java.text.MessageFormat;
import java.time.Duration;

import org.junit.Test;
Expand Down Expand Up @@ -66,7 +65,7 @@ public void ofWithTooLongDurationThrowsException() {

assertThatExceptionOfType(IllegalKeepAliveIntervalSecondsException.class)
.isThrownBy(() -> KeepAliveInterval.of(Duration.ofSeconds(exceedingSeconds)))
.withMessageEndingWith(MessageFormat.format("but it was <{0,number,integer}>.", exceedingSeconds))
.withMessageEndingWith("but it was <%d>.", exceedingSeconds)
.withNoCause();
}

Expand Down

0 comments on commit c1d7bb2

Please sign in to comment.