| 6 | import org.junit.Test; |
| 7 | |
| 8 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected