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

Class CryptoTest

src/test/java/com/github/javafaker/CryptoTest.java:9–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9public class CryptoTest extends AbstractFakerTest {
10
11 @Test
12 public void testMd5() {
13 assertThat(faker.crypto().md5(), matchesRegularExpression("[a-z\\d]+"));
14 }
15
16 @Test
17 public void testSha1() {
18 assertThat(faker.crypto().sha1(), matchesRegularExpression("[a-z\\d]+"));
19 }
20
21 @Test
22 public void testSha256() {
23 assertThat(faker.crypto().sha256(), matchesRegularExpression("[a-z\\d]+"));
24 }
25
26 @Test
27 public void testSha512() {
28 assertThat(faker.crypto().sha512(), matchesRegularExpression("[a-z\\d]+"));
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected