Question: Java Language How can I make a test in JUnit for this setter and getter? private String customerId; public String getCustomerId(){ return customerId; } public
Java Language
How can I make a test in JUnit for this setter and getter?
private String customerId;
public String getCustomerId(){
return customerId;
}
public void setCustomerId(String customerId){
if (customerId.length()<= 4){
this.customerId = customerId;
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
