Question: Hi I need help correcting this j unit test package medical.com.medicalApplication.model; import static org.junit.Assert.*; import org.junit.Test; import java.util.ArrayList; import java.util.List; /** * * This class
Hi I need help correcting this j unit test
package medical.com.medicalApplication.model;
import static org.junit.Assert.*;
import org.junit.Test;
import java.util.ArrayList; import java.util.List; /** * * This class represents a patient history model in the system * */ public class PatientHistory {
private List
public PatientHistory() { this.treatments = new ArrayList
public void addTreatment(Treatment treatment) { treatments.add(treatment); }
public void addAllergy(Allergey allegry) { allergy.add(allegry); }
public void addMedication(Medication medication) { if(treatments != null){ medications.add(medication); } }
public List
public List
public List
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
