| 6 | import static org.junit.Assert.assertThat; |
| 7 | |
| 8 | public class AppTest extends AbstractFakerTest { |
| 9 | |
| 10 | @Test |
| 11 | public void testName() { |
| 12 | assertThat(faker.app().name(), matchesRegularExpression("([\\w-]+ ?)+")); |
| 13 | } |
| 14 | |
| 15 | @Test |
| 16 | public void testVersion() { |
| 17 | assertThat(faker.app().version(), matchesRegularExpression("\\d\\.(\\d){1,2}(\\.\\d)?")); |
| 18 | } |
| 19 | |
| 20 | @Test |
| 21 | public void testAuthor() { |
| 22 | assertThat(faker.app().author(), matchesRegularExpression("([\\w']+[-&,\\.]? ?){2,9}")); |
| 23 | } |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected