added words test

This commit is contained in:
Ren Shao
2013-12-23 11:33:23 +11:00
parent 27850c0477
commit 7fc5e07284
@@ -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());
}
}