Skip to content

Commit 1555f99

Browse files
committedMar 12, 2014
Fixed build
(cherry picked from commit 0fee185)
1 parent b738e2f commit 1555f99

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎web/src/test/java/org/openmrs/web/controller/patient/ShortPatientFormControllerTest.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import org.apache.commons.beanutils.BeanUtils;
2525
import org.junit.Assert;
26-
import org.junit.Before;
2726
import org.junit.Test;
2827
import org.openmrs.GlobalProperty;
2928
import org.openmrs.Patient;
@@ -43,14 +42,11 @@
4342
import org.openmrs.web.test.WebTestHelper;
4443
import org.springframework.beans.factory.annotation.Autowired;
4544
import org.springframework.mock.web.MockHttpServletRequest;
46-
import org.springframework.mock.web.MockHttpServletResponse;
4745
import org.springframework.validation.BindException;
4846
import org.springframework.validation.BindingResult;
4947
import org.springframework.web.bind.support.SessionStatus;
5048
import org.springframework.web.context.request.ServletWebRequest;
5149
import org.springframework.web.context.request.WebRequest;
52-
import org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter;
53-
import org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping;
5450

5551
/**
5652
* Consists of unit tests for the ShortPatientFormController
@@ -545,7 +541,7 @@ public void saveShortPatient_shouldNotVoidAddressIfItWasNotChanged() throws Exce
545541
PersonAddress personAddress = patient.getPersonAddress();
546542

547543
MockHttpServletRequest request = webTestHelper.newPOST("/admin/patients/shortPatientForm.form");
548-
request.setParameter("patientId", patient.getPatientId().toString());
544+
request.setParameter("patientId", "2");
Has conversations. Original line has conversations.
549545
request.setParameter("personAddress.address1", personAddress.getAddress1());
550546
request.setParameter("personAddress.countyDistrict", "");
551547

@@ -567,7 +563,7 @@ public void saveShortPatient_shouldVoidAddressIfItWasChanged() throws Exception
567563
PersonAddress personAddress = patient.getPersonAddress();
568564

569565
MockHttpServletRequest request = webTestHelper.newPOST("/admin/patients/shortPatientForm.form");
570-
request.setParameter("patientId", patient.getPatientId().toString());
566+
request.setParameter("patientId", "2");
571567
request.setParameter("personAddress.address1", "new");
572568
request.setParameter("personAddress.countyDistrict", "");
573569

0 commit comments

Comments
 (0)
Please sign in to comment.