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

Class CurrencyTest

src/test/java/com/github/javafaker/CurrencyTest.java:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import org.junit.Test;
7
8public class CurrencyTest extends AbstractFakerTest {
9
10 @Test
11 public void testName() {
12 assertThat(faker.currency().name(), matchesRegularExpression("[\\w\\'\\.\\-\\(\\) ]+"));
13 }
14
15 @Test
16 public void testCode() {
17 final Currency currency = faker.currency();
18 assertThat(currency.code(), matchesRegularExpression("[A-Z]{3}"));
19 }
20
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected