Skip to content

Commit

Permalink
DescriptionFormatter_format_Test: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSchumacher committed Jan 5, 2019
1 parent c643ea6 commit c357751
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -14,6 +14,8 @@

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

import java.util.stream.Stream;

import org.assertj.core.description.Description;
import org.assertj.core.internal.TestDescription;
import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -47,11 +49,7 @@ public void should_return_empty_String(TestDescription testDescription) {
assertThat(formatter.format(testDescription)).isEmpty();
}

public static Object[][] descriptionGeneratorDataProvider() {
return new Object[][] {
{ null },
{ new TestDescription(null) },
{ new TestDescription("") }
};
public static Stream<TestDescription> descriptionGeneratorDataProvider() {
return Stream.of(null, new TestDescription(null), new TestDescription(""));
}
}

0 comments on commit c357751

Please sign in to comment.