Use hamcrest matchers to be consistent with the rest of the test

This commit is contained in:
inigo
2020-07-01 15:28:03 +02:00
parent 9cdc12b892
commit 3aa5cf2d9c
@@ -4,7 +4,8 @@ import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertFalse;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.Matchers.not;
public class StarTrekTest extends AbstractFakerTest {
@@ -29,5 +30,5 @@ public class StarTrekTest extends AbstractFakerTest {
}
@Test
public void klingon() { assertFalse(faker.starTrek().klingon().isEmpty()); }
public void klingon() { assertThat(faker.starTrek().klingon(), not(isEmptyOrNullString())); }
}