Skip to content

Commit a63a509

Browse files
committed
chore:stretch started
1 parent 80d9430 commit a63a509

File tree

1 file changed

+9
-1
lines changed
  • lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9

1 file changed

+9
-1
lines changed

lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/Lesson9.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ public void run(String... args) throws Exception {
2626
if (providerName == null) {
2727
throw new IllegalArgumentException("Provider name is required");
2828
}
29-
29+
if (providerName.equals("--all")){
30+
String[] providers = {"danielsonadjocy", "johnsonjames", "smithjane", "williamsrobert"};
31+
for (String provider : providers) {
32+
String path = getDataPath();
33+
var fileGenerator = new SampleFileGenerator();
34+
fileGenerator.createTestFile(path, provider);
35+
}
36+
return;
37+
}
3038
String path = getDataPath();
3139
var fileGenerator = new SampleFileGenerator();
3240
fileGenerator.createTestFile(path, providerName);

0 commit comments

Comments
 (0)