File tree Expand file tree Collapse file tree 3 files changed +63
-20
lines changed
Expand file tree Collapse file tree 3 files changed +63
-20
lines changed Original file line number Diff line number Diff line change 66 <version >1.0.0</version >
77 <description >Project containing examples, exercises and answers for my open source WireMock workshop</description >
88 <properties >
9- <maven .compiler.source>21</maven .compiler.source>
10- <maven .compiler.target>21</maven .compiler.target>
9+ <maven .compiler.release>17</maven .compiler.release>
1110 <wiremock .version>3.9.2</wiremock .version>
1211 <junit .version>5.11.3</junit .version>
1312 <restassured .version>5.5.0</restassured .version>
4645 <version >${slf4j.version} </version >
4746 <scope >test</scope >
4847 </dependency >
49- <dependency >
50- <groupId >org.projectlombok</groupId >
51- <artifactId >lombok</artifactId >
52- <version >${lombok.version} </version >
53- <scope >test</scope >
54- </dependency >
5548 </dependencies >
5649 <build >
5750 <plugins >
Original file line number Diff line number Diff line change 11package models ;
22
3- import lombok .AllArgsConstructor ;
4- import lombok .Data ;
5- import lombok .NoArgsConstructor ;
6-
7- @ Data
8- @ NoArgsConstructor @ AllArgsConstructor
93public class LoanDetails {
104
115 private int amount ;
126 private int downPayment ;
137 private String status ;
8+
9+ public LoanDetails () {
10+ this .amount = 0 ;
11+ this .downPayment = 0 ;
12+ this .status = "new" ;
13+ }
14+
15+ public LoanDetails (int amount , int downPayment , String status ) {
16+ this .amount = amount ;
17+ this .downPayment = downPayment ;
18+ this .status = status ;
19+ }
20+
21+ public int getAmount () {
22+ return amount ;
23+ }
24+
25+ public void setAmount (int amount ) {
26+ this .amount = amount ;
27+ }
28+
29+ public int getDownPayment () {
30+ return downPayment ;
31+ }
32+
33+ public void setDownPayment (int downPayment ) {
34+ this .downPayment = downPayment ;
35+ }
36+
37+ public String getStatus () {
38+ return status ;
39+ }
40+
41+ public void setStatus (String status ) {
42+ this .status = status ;
43+ }
1444}
Original file line number Diff line number Diff line change 11package models ;
22
3- import lombok .AllArgsConstructor ;
4- import lombok .Data ;
5- import lombok .NoArgsConstructor ;
6-
7- @ Data
8- @ NoArgsConstructor @ AllArgsConstructor
93public class LoanRequest {
104
115 private int customerId ;
126 private LoanDetails loanDetails ;
7+
8+ public LoanRequest () {
9+ this .customerId = 0 ;
10+ this .loanDetails = new LoanDetails ();
11+ }
12+
13+ public LoanRequest (int customerId , LoanDetails loanDetails ) {
14+ this .customerId = customerId ;
15+ this .loanDetails = loanDetails ;
16+ }
17+
18+ public int getCustomerId () {
19+ return customerId ;
20+ }
21+
22+ public void setCustomerId (int customerId ) {
23+ this .customerId = customerId ;
24+ }
25+
26+ public LoanDetails getLoanDetails () {
27+ return loanDetails ;
28+ }
29+
30+ public void setLoanDetails (LoanDetails loanDetails ) {
31+ this .loanDetails = loanDetails ;
32+ }
1333}
You can’t perform that action at this time.
0 commit comments