Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRUNK-3949: Yet another try at fixing the build
- Loading branch information
1 parent
0c7564b
commit a04064f
Showing
3 changed files
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
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}. | ||
|
@@ -40,7 +39,6 @@ public UserService getUS() { | |
} | ||
|
||
@Test | ||
@NotTransactional | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wluyima
Member
|
||
public void shouldUpdateRoleWithParent() throws Exception { | ||
Role child = new Role("child", "child"); | ||
getUS().saveRole(child); | ||
|
@@ -61,8 +59,6 @@ public void shouldUpdateRoleWithParent() throws Exception { | |
wth.handle(requestPOST); | ||
|
||
Assert.assertEquals("updated child", getUS().getRole("child").getDescription()); | ||
|
||
deleteAllData(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Something bad happened to NotTransactional in 1.10. It doesn't seem to work correctly if running multiple tests (LazilyInitializationException), but does work when running a single test.