add GameOfThrones#quote (#191)
This commit is contained in:
committed by
Ricky Yim
parent
54f4bc34b1
commit
bb4efb6bd3
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user