@@ -10,62 +10,62 @@ public class PhotographyTest extends AbstractFakerTest{
1010
1111 @ Test
1212 public void testAperture () {
13- String value = faker .photography ().aperture ();
13+ final String value = faker .photography ().aperture ();
1414 assertTrue (value .startsWith ("f" ));
1515 }
1616
1717 @ Test
1818 public void testTerm () {
19- String value = faker .photography ().term ();
19+ final String value = faker .photography ().term ();
2020 assertNonNullOrEmpty (value );
2121 }
2222
2323 @ Test
2424 public void brand () {
25- String value = faker .photography ().brand ();
25+ final String value = faker .photography ().brand ();
2626 assertNonNullOrEmpty (value );
2727 }
2828
2929 @ Test
3030 public void camera () {
31- String value = faker .photography ().camera ();
31+ final String value = faker .photography ().camera ();
3232 assertNonNullOrEmpty (value );
3333 }
3434
3535 @ Test
3636 public void lens () {
37- String value = faker .photography ().lens ();
37+ final String value = faker .photography ().lens ();
3838 assertNonNullOrEmpty (value );
3939 }
4040
4141 @ Test
42- public void gengre () {
43- String value = faker .photography ().gengre ();
42+ public void genre () {
43+ final String value = faker .photography ().genre ();
4444 assertNonNullOrEmpty (value );
4545 }
4646
4747 @ Test
4848 public void imageTag () {
49- String value = faker .photography ().imageTag ();
49+ final String value = faker .photography ().imageTag ();
5050 assertNonNullOrEmpty (value );
5151 }
5252
53- private void assertNonNullOrEmpty (String value ) {
54- assertNotNull (value );
55- assertFalse (value .isEmpty ());
56- }
57-
5853 @ Test
5954 @ Repeat (times =7 )
6055 public void shutter () {
61- String value = faker .photography ().shutter ();
56+ final String value = faker .photography ().shutter ();
6257 assertThat (value , matchesRegularExpression ("\\ d{1,}\\ /{0,1}\\ d*" ));
6358 }
6459
6560 @ Test
6661 @ Repeat (times =7 )
6762 public void iso () {
68- String value = faker .photography ().iso ();
63+ final String value = faker .photography ().iso ();
6964 assertThat (value , matchesRegularExpression ("\\ d{1,}" ));
7065 }
66+
67+ private void assertNonNullOrEmpty (String value ) {
68+ assertNotNull (value );
69+ assertFalse (value .isEmpty ());
70+ }
7171}
0 commit comments