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

Method testIsbn10

src/test/java/com/github/javafaker/CodeTest.java:37–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 @Test
38 @Repeat(times = 1000)
39 public void testIsbn10() {
40 final String isbn10NoSep = faker.code().isbn10(false);
41 final String isbn10Sep = faker.code().isbn10(true);
42
43 assertThat(isbn10NoSep + " is not null", isbn10NoSep, is(not(nullValue())));
44 assertThat(isbn10NoSep + " has length of 10", isbn10NoSep.length(), is(10));
45 assertIsValidISBN10(isbn10NoSep);
46
47 assertThat(isbn10Sep + " is not null", isbn10Sep, is(not(nullValue())));
48 assertThat(isbn10Sep + " has length of 13", isbn10Sep.length(), is(13));
49 assertIsValidISBN10(isbn10Sep);
50 }
51
52 @Test
53 @Repeat(times = 1000)

Callers

nothing calls this directly

Calls 3

assertIsValidISBN10Method · 0.95
isbn10Method · 0.80
codeMethod · 0.45

Tested by

no test coverage detected