Skip to content

Commit

Permalink
updates from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Sep 25, 2019
1 parent 52ed023 commit 39c200c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void bad3(Collection<T> things) {
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@

import static org.assertj.core.api.Assertions.assertThat;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.refaster.ImportPolicy;
import com.google.errorprone.refaster.annotation.AfterTemplate;
import com.google.errorprone.refaster.annotation.BeforeTemplate;
import com.google.errorprone.refaster.annotation.UseImportPolicy;
import java.util.Collection;
import java.util.Collections;

public final class AssertjCollectionIsEmptyWithDescription<T> {

Expand All @@ -45,32 +42,7 @@ void bad3(Collection<T> things, String description) {
}

@BeforeTemplate
void bad4(Iterable<T> things, String description) {
assertThat(things).describedAs(description).isEqualTo(Collections.emptyList());
}

@BeforeTemplate
void bad5(Iterable<T> things, String description) {
assertThat(things).describedAs(description).isEqualTo(Collections.emptySet());
}

@BeforeTemplate
void bad6(Iterable<T> things, String description) {
assertThat(things).describedAs(description).isEqualTo(ImmutableList.of());
}

@BeforeTemplate
void bad7(Iterable<T> things, String description) {
assertThat(things).describedAs(description).isEqualTo(ImmutableSet.of());
}

@BeforeTemplate
void bad8(Iterable<T> things, String description) {
assertThat(things).describedAs(description).hasSize(0);
}

@BeforeTemplate
void bad9(Collection<T> things, String description) {
void bad4(Collection<T> things, String description) {
assertThat(things.size()).describedAs(description).isEqualTo(0);
}

Expand Down

0 comments on commit 39c200c

Please sign in to comment.