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
int ValidateTeamAssign(ECSCONTEXT * p_ECSContext, | |
CLAIMDATAHANDLE * p_ClaimDataHandle) | |
{ | |
int Status = OLC_FALSE; | |
CLAIMDATASTR * ClmPtr = NULL; | |
ECSCLAIM * ECSPtr = NULL; | |
OLCS0010Assert(p_ECSContext != NULL); | |
OLCS0010Assert(p_ClaimDataHandle != NULL); |
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
int ValidateTeamAssign(ECSCONTEXT * p_ECSContext, | |
CLAIMDATAHANDLE * p_ClaimDataHandle) | |
{ | |
int Status = OLC_FALSE; | |
CLAIMDATASTR * ClmPtr = NULL; | |
ECSCLAIM * ECSPtr = NULL; | |
OLCS0010Assert(p_ECSContext != NULL); | |
OLCS0010Assert(p_ClaimDataHandle != NULL); |
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
Testsuite: org.openmrs.module.webservices.rest.web.DelegatingCrudResourceTest | |
Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.068 sec | |
Testcase: org.openmrs.module.webservices.rest.web.DelegatingCrudResourceTest: Caused an ERROR | |
contextDAO is null | |
org.openmrs.api.APIException: contextDAO is null | |
at org.openmrs.api.context.Context.getContextDAO(Context.java:167) | |
at org.openmrs.api.context.Context.closeSession(Context.java:732) | |
at org.openmrs.test.BaseContextSensitiveTest.closeSessionAfterEachClass(BaseContextSensitiveTest.java:710) | |
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) |
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
/** | |
* @see UserController#createUser(SimpleObject,WebRequest) | |
* @throws Exception | |
* @verifies create a new user | |
*/ | |
@Test | |
public void createUser_shouldCreateANewUserWithRoles() throws Exception { | |
long originalCount = getAllCount(); |
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
@Test | |
public void createUser_shouldCreateANewUserWithRoles() throws Exception { | |
long originalCount = getAllCount(); | |
SimpleObject user = new SimpleObject(); | |
user.add("username", "test user"); | |
user.add("password", "Secret123"); | |
user.add("person", "da7f524f-27ce-4bb2-86d6-6d1d05312bd5"); | |
user.add("roles", "3480cb6d-c291-46c8-8d3a-96dc33d199fb"); |