()
| 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) |
nothing calls this directly
no test coverage detected