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

Method ean13

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

Source from the content-addressed store, hash-verified

113 }
114
115 @Test
116 public void ean13() {
117 String ean13 = faker.code().ean13();
118 assertThat(ean13, matchesRegularExpression("\\d{13}"));
119 assertThat(EAN13CheckDigit.EAN13_CHECK_DIGIT.isValid(ean13), is(true));
120 }
121
122 @Test
123 public void gtin13() {

Callers

nothing calls this directly

Calls 2

codeMethod · 0.45

Tested by

no test coverage detected