added words test
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.github.javafaker;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.notNullValue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class WordsTest {
|
||||
private Faker faker = new Faker();
|
||||
|
||||
@Test
|
||||
public void shouldGenerateWordsFromLorem() {
|
||||
assertThat(faker.words(10).get(0), notNullValue());
|
||||
assertThat(faker.words(10).get(9), notNullValue());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user