Skip to content

Commit 441ca4f

Browse files
authored
add shipping faker for logistics and tracking data (#26)
Implement comprehensive Shipping faker module to generate realistic shipping and logistics test data including: - Tracking numbers for major carriers (UPS, FedEx, USPS, DHL) - Shipping methods, statuses, and package types - Package dimensions, weights, and costs - Delivery dates and time windows - Facility locations and tracking events - Handling instructions and exception types Includes 32 test cases with full coverage of all methods.
1 parent f18be07 commit 441ca4f

5 files changed

Lines changed: 619 additions & 0 deletions

File tree

‎src/main/java/org/thejavaguy/javafaker/Faker.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public class Faker {
108108
private final Sip sip;
109109
private final EnglandFootBall englandfootball;
110110
private final Mountain mountain;
111+
private final Shipping shipping;
111112

112113
public Faker() {
113114
this(Locale.ENGLISH);
@@ -225,6 +226,7 @@ public Faker(FakeValuesService fakeValuesService, RandomService random) {
225226
this.sip = new Sip(this);
226227
this.englandfootball = new EnglandFootBall(this);
227228
this.mountain = new Mountain(this);
229+
this.shipping = new Shipping(this);
228230
}
229231

230232
/**
@@ -702,6 +704,15 @@ public StarCraft starCraft() {
702704

703705
public Mountain mountain() { return mountain; }
704706

707+
/**
708+
* Returns a Shipping instance for generating shipping-related fake data.
709+
*
710+
* @return a {@link Shipping} instance
711+
*/
712+
public Shipping shipping() {
713+
return shipping;
714+
}
715+
705716
public String resolve(String key) {
706717
return this.fakeValuesService.resolve(key, this, this);
707718
}

0 commit comments

Comments
 (0)