Skip to content

Commit

Permalink
TRUNK-3949: Fixing build
Browse files Browse the repository at this point in the history
(cherry picked from commit 7297fb3)
  • Loading branch information
rkorytkowski committed Apr 2, 2013
1 parent a6b5b21 commit 0c7564b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
import org.openmrs.web.test.WebTestHelper.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.annotation.NotTransactional;

/**`
* Tests {@link RoleFormController}.
Expand All @@ -39,6 +40,7 @@ public UserService getUS() {
}

@Test
@NotTransactional
public void shouldUpdateRoleWithParent() throws Exception {
Role child = new Role("child", "child");
getUS().saveRole(child);
Expand All @@ -59,6 +61,8 @@ public void shouldUpdateRoleWithParent() throws Exception {
wth.handle(requestPOST);

Assert.assertEquals("updated child", getUS().getRole("child").getDescription());

deleteAllData();
}

}

0 comments on commit 0c7564b

Please sign in to comment.