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: 3905106 • 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.*;

import org.junit.Test;

public class TestMedication {

public class Medication {
  private String name;
  private String startDate;
  private String endDate;
  private String dose;

  public Medication(String name, String startDate, String endDate, String dose) {
   super();
   this.name = name;
   this.startDate = startDate;
   this.endDate = endDate;
   this.dose = dose;
  }

  public String getName() {
   return name;
  }

  public void setName(String name) {
   this.name = name;
  }

  public String getStartDate() {
   return startDate;
  }

  public void setStartDate(String startDate) {
   this.startDate = startDate;
  }

  public String getEndDate() {
   return endDate;
  }

  public void setEndDate(String endDate) {
   this.endDate = endDate;
  }

  public String getDose() {
   return dose;
  }

  public void setDose(String dose) {
   this.dose = dose;
  }

  @Override
  public String toString() {
   return "Medication:"+name + " Start Date: " + startDate + " End Date: "+endDate+ " Dose: "+dose;
  }

}
}

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