|
@@ -79,12 +79,10 @@ public class PhoneNumberFactoryTest {
|
79
|
79
|
|
80
|
80
|
@Test
|
81
|
81
|
public void testCreateRandomPhoneNumber() {
|
82
|
|
- Logger.getGlobal().setLevel(Level.OFF);
|
83
|
|
- // : Given
|
84
|
|
- PhoneNumber[] phoneNumbers = PhoneNumberFactory.createRandomPhoneNumberArray(999);
|
85
|
|
-
|
86
|
|
- // : When
|
87
|
|
- for (PhoneNumber phoneNumber : phoneNumbers) {
|
|
82
|
+ for (int i = 0; i < 999; i++) {
|
|
83
|
+ // : Given
|
|
84
|
+ // : When
|
|
85
|
+ PhoneNumber phoneNumber = PhoneNumberFactory.createRandomPhoneNumber();
|
88
|
86
|
|
89
|
87
|
// : Then
|
90
|
88
|
Assert.assertTrue(phoneNumber != null);
|