11package io .github .trackerforce .fixture .clazz ;
22
3- import java .util .Date ;
4- import java .util .List ;
5- import java .util .Map ;
63import lombok .AccessLevel ;
74import lombok .AllArgsConstructor ;
85import lombok .Data ;
96import lombok .experimental .FieldDefaults ;
107
8+ import java .util .List ;
9+ import java .util .Map ;
10+
1111@ Data
1212@ AllArgsConstructor
1313@ FieldDefaults (makeFinal = true , level = AccessLevel .PRIVATE )
@@ -22,55 +22,34 @@ public class UserDetail {
2222 Occupation [] occupations ;
2323 Map <String , String > additionalInfo ;
2424 Map <String , Address > locations ;
25+ int [] scoresArray ;
2526
2627 public static UserDetail of () {
2728 return new UserDetail (
2829 "john_doe" ,
2930 "jown@email.com" ,
3031 "John Doe" ,
3132 "+1234567890" ,
32- new Address (
33- "123 Main St" ,
34- "Springfield" ,
35- "IL" ,
36- "62701" ,
37- "USA"
38- ),
33+ Address .of123 (),
3934 List .of (
40- new Order (
41- List .of (
42- new Product ("1" , "Laptop" , "High-end gaming laptop" , 1500.00 , "Electronics" , 5 ),
43- new Product ("2" , "Smartphone" , "Latest model smartphone" , 800.00 , "Electronics" , 10 )
44- ),
45- new Date (),
46- "order123"
47- ),
48- new Order (
49- List .of (
50- new Product ("3" , "Headphones" , "Noise-cancelling headphones" , 200.00 , "Accessories" , 15 )
51- ),
52- new Date (),
53- "order456"
54- )
35+ Order .ofOrder123 (),
36+ Order .ofOrder456 ()
5537 ),
5638 new String [] {"USER" , "ADMIN" },
5739 new Occupation [] {
58- new Occupation ("Software Engineer" , "Develops software applications" , 90000.00 , "Engineering" , 5 ,
59- new Address ("123 Tech St" , "Tech City" , "CA" , "90001" , "USA" )
60- ),
61- new Occupation ("Project Manager" , "Manages software projects" , 95000.00 , "Management" , 7 ,
62- new Address ("456 Project Ave" , "Project City" , "CA" , "90002" , "USA" )
63- )
40+ Occupation .ofSoftwareEngineer (),
41+ Occupation .ofProjectManager ()
6442 },
6543 Map .of (
6644 "preferredLanguage" , "English" ,
6745 "subscriptionStatus" , "Active" ,
6846 "lastLogin" , "2023-10-01T12:00:00Z"
6947 ),
7048 Map .of (
71- "home" , new Address ("456 Elm St" , "Springfield" , "IL" , "62701" , "USA" ),
72- "work" , new Address ("789 Oak St" , "Springfield" , "IL" , "62701" , "USA" )
73- )
49+ "home" , Address .of456 (),
50+ "work" , Address .of789 ()
51+ ),
52+ new int [] {85 , 90 , 95 }
7453 );
7554 }
7655}
0 commit comments