MCPcopy Create free account
hub / github.com/DiUS/java-faker / GameOfThronesTest

Class GameOfThronesTest

src/test/java/com/github/javafaker/GameOfThronesTest.java:10–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import org.junit.Test;
9
10public class GameOfThronesTest extends AbstractFakerTest {
11
12 @Test
13 public void character() {
14 assertThat(faker.gameOfThrones().character(), matchesRegularExpression("[A-Za-z'\\-\\(\\) ]+"));
15 }
16
17 @Test
18 public void house() {
19 assertThat(faker.gameOfThrones().house(), matchesRegularExpression("[A-Za-z' ]+"));
20 }
21
22 @Test
23 public void city() {
24 assertThat(faker.gameOfThrones().city(), matchesRegularExpression("[A-Za-z' ]+"));
25 }
26
27 @Test
28 public void dragon() {
29 assertThat(faker.gameOfThrones().dragon(), matchesRegularExpression("\\w+"));
30 }
31
32 @Test
33 public void quote() {
34 assertThat(faker.gameOfThrones().quote(), not(isEmptyOrNullString()));
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected