Skip to content

Commit a04064f

Browse files
committedApr 2, 2013
TRUNK-3949: Yet another try at fixing the build
1 parent 0c7564b commit a04064f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 

‎web/src/test/java/org/openmrs/web/controller/ConceptFormControllerTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ public void validateConceptReferenceTermUsesPersistedObjects_shouldAddErrorIfTer
10331033
* @verifies not save changes if there are validation errors
10341034
*/
10351035
@Test
1036-
@NotTransactional
10371036
public void onSubmit_shouldNotSaveChangesIfThereAreValidationErrors() throws Exception {
10381037
Integer conceptId = 792;
10391038

@@ -1047,6 +1046,8 @@ public void onSubmit_shouldNotSaveChangesIfThereAreValidationErrors() throws Exc
10471046
Response response = webTestHelper.handle(request);
10481047
assertThat(response.getErrors().hasFieldErrors("synonymsByLocale[en][1].name"), is(true));
10491048

1049+
Context.clearSession();
1050+
10501051
Concept concept = conceptService.getConcept(conceptId);
10511052
assertThat(concept.getPreferredName(Locale.ENGLISH).getName(), is("STAVUDINE LAMIVUDINE AND NEVIRAPINE"));
10521053
}

‎web/src/test/java/org/openmrs/web/controller/user/RoleFormControllerTest.java

-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.openmrs.web.test.WebTestHelper.Response;
2626
import org.springframework.beans.factory.annotation.Autowired;
2727
import org.springframework.mock.web.MockHttpServletRequest;
28-
import org.springframework.test.annotation.NotTransactional;
2928

3029
/**`
3130
* Tests {@link RoleFormController}.
@@ -40,7 +39,6 @@ public UserService getUS() {
4039
}
4140

4241
@Test
43-
@NotTransactional
Has conversations. Original line has conversations.
4442
public void shouldUpdateRoleWithParent() throws Exception {
4543
Role child = new Role("child", "child");
4644
getUS().saveRole(child);
@@ -61,8 +59,6 @@ public void shouldUpdateRoleWithParent() throws Exception {
6159
wth.handle(requestPOST);
6260

6361
Assert.assertEquals("updated child", getUS().getRole("child").getDescription());
64-
65-
deleteAllData();
6662
}
6763

6864
}

‎web/src/test/java/org/openmrs/web/test/WebTestHelper.java

-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ public Response handle(final HttpServletRequest request) throws Exception {
135135

136136
Assert.assertTrue("The requested URI has no handlers: " + request.getRequestURI(), supported);
137137

138-
Context.clearSession();
139-
140138
return new Response(response, request.getSession(), modelAndView);
141139
}
142140

0 commit comments

Comments
 (0)
Please sign in to comment.