Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

=======================================================

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote