Skip to content

Commit

Permalink
fix: greaterThan(0) -> isPositive()
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Mar 5, 2024
1 parent a223065 commit 35bd0f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class JsonArgumentsProviderTest {
@JsonSource("[1,2]")
@DisplayName("provides an array of numbers")
void arrayOfNumbers(JsonNumber number) {
assertThat(number.intValue()).isGreaterThan(0);
assertThat(number.intValue()).isPositive();
}

/**
Expand Down Expand Up @@ -155,7 +155,7 @@ class JsonFileArgumentsProviderTest {
@JsonFileSource(resources = "/array-of-numbers.json")
@DisplayName("provides an array of numbers")
void arrayOfNumbers(JsonNumber number) {
assertThat(number.intValue()).isGreaterThan(0);
assertThat(number.intValue()).isPositive();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void arrayOfObjects(JsonObject object) {
@JsonSource("[1,2]")
@DisplayName("provides an array of numbers")
void arrayOfNumbers(JsonNumber number) {
assertThat(number.intValue()).isGreaterThan(0);
assertThat(number.intValue()).isPositive();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void arrayOfObjects(JsonObject object) {
@JsonFileSource(resources = "/array-of-numbers.json")
@DisplayName("provides an array of numbers")
void arrayOfNumbers(JsonNumber number) {
assertThat(number.intValue()).isGreaterThan(0);
assertThat(number.intValue()).isPositive();
}

/**
Expand Down

0 comments on commit 35bd0f9

Please sign in to comment.