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

Method gtin13

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

Source from the content-addressed store, hash-verified

120 }
121
122 @Test
123 public void gtin13() {
124 String gtin13 = faker.code().gtin13();
125 assertThat(gtin13, matchesRegularExpression("\\d{13}"));
126 assertThat(EAN13CheckDigit.EAN13_CHECK_DIGIT.isValid(gtin13), is(true));
127 }
128}

Callers

nothing calls this directly

Calls 2

codeMethod · 0.45

Tested by

no test coverage detected