Skip to content

Commit

Permalink
TRUNK-3949: Removed flushing from WebTestHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Apr 2, 2013
1 parent 7297fb3 commit f033255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -985,6 +985,8 @@ public void onSubmit_shouldNotSaveChangesIfThereAreValidationErrors() throws Exc
Response response = webTestHelper.handle(request);
assertThat(response.getErrors().hasFieldErrors("synonymsByLocale[en][1].name"), is(true));

Context.clearSession();

Concept concept = conceptService.getConcept(conceptId);
assertThat(concept.getPreferredName(Locale.ENGLISH).getName(), is("STAVUDINE LAMIVUDINE AND NEVIRAPINE"));
}
Expand Down
2 changes: 0 additions & 2 deletions web/src/test/java/org/openmrs/web/test/WebTestHelper.java
Expand Up @@ -135,8 +135,6 @@ public Response handle(final HttpServletRequest request) throws Exception {

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

Context.clearSession();

return new Response(response, request.getSession(), modelAndView);
}

Expand Down

0 comments on commit f033255

Please sign in to comment.