Skip to content

Commit 1af3161

Browse files
authored
Fix code smell (#406)
1 parent a2d1701 commit 1af3161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pg-index-health-model/src/test/java/io/github/mfvanek/pg/model/validation/ValidatorsTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void validPercentTest() {
5252
.isEqualTo(50.0);
5353

5454
assertThat(Validators.validPercent(0.0, "remainingPercentageThreshold"))
55-
.isEqualTo(0.0);
55+
.isZero();
5656

5757
assertThat(Validators.validPercent(100.0, "remainingPercentageThreshold"))
5858
.isEqualTo(100.0);
@@ -72,7 +72,7 @@ void argumentNotNegative() {
7272
.isInstanceOf(IllegalArgumentException.class)
7373
.hasMessage("arg cannot be less than zero");
7474
assertThat(Validators.argumentNotNegative(0, "arg"))
75-
.isEqualTo(0);
75+
.isZero();
7676
assertThat(Validators.argumentNotNegative(11, "arg"))
7777
.isEqualTo(11);
7878
}

0 commit comments

Comments
 (0)