| 6 | import static org.junit.Assert.assertThat; |
| 7 | |
| 8 | public class HackerTest extends AbstractFakerTest { |
| 9 | |
| 10 | @Test |
| 11 | public void testAbbreviation() { |
| 12 | assertThat(faker.hacker().abbreviation(), matchesRegularExpression("[A-Z]{2,4}")); |
| 13 | } |
| 14 | |
| 15 | @Test |
| 16 | public void testAdjective() { |
| 17 | assertThat(faker.hacker().adjective(), matchesRegularExpression("(\\w+[- ]?){1,2}")); |
| 18 | } |
| 19 | |
| 20 | @Test |
| 21 | public void testNoun() { |
| 22 | assertThat(faker.hacker().noun(), matchesRegularExpression("\\w+( \\w+)?")); |
| 23 | } |
| 24 | |
| 25 | @Test |
| 26 | public void testVerb() { |
| 27 | assertThat(faker.hacker().verb(), matchesRegularExpression("\\w+( \\w+)?")); |
| 28 | } |
| 29 | |
| 30 | @Test |
| 31 | public void testIngverb() { |
| 32 | assertThat(faker.hacker().ingverb(), matchesRegularExpression("\\w+ing( \\w+)?")); |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected