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: 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

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

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