Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Sep 25, 2019
1 parent ff94ed8 commit c07bdf3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class AssertjCollectionIsEmpty<T> {

@BeforeTemplate
void bad1(Collection<T> things) {
assertThat(things.size() == 0).isTrue();
assertThat(things).hasSize(0);
}

@BeforeTemplate
Expand Down Expand Up @@ -71,7 +71,7 @@ void bad8(Iterable<T> things) {

@BeforeTemplate
void bad9(Collection<T> things) {
assertThat(things.size()).isEqualTo(0);
assertThat(things).hasSize(0);
}

@AfterTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public final class AssertjCollectionIsNotEmpty<T> {

@BeforeTemplate
void bad1(Collection<T> things) {
assertThat(things.size() != 0).isTrue();
assertThat(!things.isEmpty()).isTrue();
}

@BeforeTemplate
void bad2(Collection<T> things) {
assertThat(things.size() == 0).isFalse();
assertThat(things.isEmpty()).isFalse();
}

@BeforeTemplate
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:nebula-publishing-plugin:13.6.1'
classpath 'com.netflix.nebula:gradle-info-plugin:5.1.0'
classpath 'com.palantir.baseline:gradle-baseline-java:2.9.2'
classpath 'com.palantir.baseline:gradle-baseline-java:2.12.0'
}
}

Expand Down

0 comments on commit c07bdf3

Please sign in to comment.