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

Method testTitle

src/test/java/com/github/javafaker/BookTest.java:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8public class BookTest extends AbstractFakerTest {
9
10 @Test
11 public void testTitle() {
12 assertThat(faker.book().title(), matchesRegularExpression("([\\p{L}'\\-\\?]+[!,]? ?){2,9}"));
13 }
14
15 @Test
16 public void testAuthor() {

Callers

nothing calls this directly

Calls 3

titleMethod · 0.45
bookMethod · 0.45

Tested by

no test coverage detected