add GameOfThrones#quote (#191)

This commit is contained in:
Pascal Schumacher
2017-01-23 23:53:15 +01:00
committed by Ricky Yim
parent 54f4bc34b1
commit bb4efb6bd3
2 changed files with 11 additions and 0 deletions
@@ -23,4 +23,8 @@ public class GameOfThrones {
public String dragon() {
return faker.resolve("game_of_thrones.dragons");
}
public String quote() {
return faker.resolve("game_of_thrones.quotes");
}
}
@@ -1,6 +1,8 @@
package com.github.javafaker;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.core.IsNot.not;
import static org.junit.Assert.assertThat;
import org.junit.Test;
@@ -26,4 +28,9 @@ public class GameOfThronesTest extends AbstractFakerTest {
public void dragon() {
assertThat(faker.gameOfThrones().dragon(), matchesRegularExpression("\\w+"));
}
@Test
public void quote() {
assertThat(faker.gameOfThrones().quote(), not(isEmptyOrNullString()));
}
}