Hi i need help implementing the proper code for a JUnit test within my code for
ID: 3905108 • Letter: H
Question
Hi i need help implementing the proper code for a JUnit test within my code for eclipse oxygen:
package medical.com.medicalApplication.model;
import static org.junit.Assert.*;
public class TreatmentTest {
public class Treatment {
private String treatmentDate;
private String diagnose;
private String description;
public Treatment(String treatmentDate, String diagnose, String description) {
super();
this.treatmentDate = treatmentDate;
this.diagnose = diagnose;
this.description = description;
}
public String getTreatmentDate() {
return treatmentDate;
}
public void setTreatmentDate(String treatmentDate) {
this.treatmentDate = treatmentDate;
}
public String getDiagnose() {
return diagnose;
}
public void setDiagnose(String diagnose) {
this.diagnose = diagnose;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Treatment: "+ " Date: "+ treatmentDate+ " Diagnose: " + diagnose;
}
}
Explanation / Answer
=======================================================
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.