Hi i need help implementing the proper code for a JUnit test within my code for
ID: 3905107 • 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.Before;
import org.junit.Test;
public class TestPatient {
private String name;
private String id;
@Before
public void Patient(String name, String id) {
super();
this.name = name;
this.id = id;
}
@Test
public String getName() {
return name;
}
@Test
public void setName(String name) {
this.name = name;
}
@Test
public String getId() {
return id;
}
@Test
public void setId(String id) {
this.id = id;
}
@Test
public String toString() {
return "Patient Name: "+name+ " ID: "+id;
}
}
Explanation / Answer
===================================================
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.