Skip to content

Commit 0c7564b

Browse files
committedApr 2, 2013
TRUNK-3949: Fixing build
(cherry picked from commit 7297fb3)
1 parent a6b5b21 commit 0c7564b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

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

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
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;
2829

2930
/**`
3031
* Tests {@link RoleFormController}.
@@ -39,6 +40,7 @@ public UserService getUS() {
3940
}
4041

4142
@Test
43+
@NotTransactional
4244
public void shouldUpdateRoleWithParent() throws Exception {
4345
Role child = new Role("child", "child");
4446
getUS().saveRole(child);
@@ -59,6 +61,8 @@ public void shouldUpdateRoleWithParent() throws Exception {
5961
wth.handle(requestPOST);
6062

6163
Assert.assertEquals("updated child", getUS().getRole("child").getDescription());
64+
65+
deleteAllData();
6266
}
6367

6468
}

0 commit comments

Comments
 (0)
Please sign in to comment.