Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Mar 12, 2014
1 parent f338537 commit 0fee185
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -23,7 +23,6 @@

import org.apache.commons.beanutils.BeanUtils;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openmrs.GlobalProperty;
import org.openmrs.Patient;
Expand All @@ -43,14 +42,11 @@
import org.openmrs.web.test.WebTestHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.validation.BindException;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.support.SessionStatus;
import org.springframework.web.context.request.ServletWebRequest;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter;
import org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping;

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

MockHttpServletRequest request = webTestHelper.newPOST("/admin/patients/shortPatientForm.form");
request.setParameter("patientId", patient.getPatientId().toString());
request.setParameter("patientId", "2");
request.setParameter("personAddress.address1", personAddress.getAddress1());
request.setParameter("personAddress.countyDistrict", "");

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

MockHttpServletRequest request = webTestHelper.newPOST("/admin/patients/shortPatientForm.form");
request.setParameter("patientId", patient.getPatientId().toString());
request.setParameter("patientId", "2");
request.setParameter("personAddress.address1", "new");
request.setParameter("personAddress.countyDistrict", "");

Expand Down

0 comments on commit 0fee185

Please sign in to comment.