Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
08/09/08 16:18:42 (5 months ago)
Author:
mcunderlik
Message:

data_synchronization_bidirectional branch: fixed unit tests to work with Junit4 changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/data_synchronization_bidirectional/test/api/org/openmrs/test/synchronization/engine/SyncUserTest.java

    r5145 r5215  
    1414package org.openmrs.test.synchronization.engine; 
    1515 
     16import static org.junit.Assert.assertEquals; 
     17import static org.junit.Assert.assertNotSame; 
     18import static org.junit.Assert.assertTrue; 
     19import static org.junit.Assert.assertFalse; 
     20import static org.junit.Assert.assertNull; 
     21import static org.junit.Assert.assertNotNull; 
     22import org.junit.Test; 
     23 
    1624import java.util.Date; 
    1725 
    18 import org.openmrs.LoginCredential; 
    1926import org.openmrs.PersonName; 
    2027import org.openmrs.Privilege; 
     
    2330import org.openmrs.api.UserService; 
    2431import org.openmrs.api.context.Context; 
    25 import org.openmrs.api.context.ContextAuthenticationException; 
    2632import org.openmrs.util.OpenmrsUtil; 
     33import org.springframework.test.annotation.NotTransactional; 
    2734 
    2835/** 
     
    3643    } 
    3744         
     45        @Test 
     46        @NotTransactional 
    3847        public void testCreateUser() throws Exception { 
    3948                runSyncTest(new SyncTestHelper() { 
     
    5766        } 
    5867 
     68        @Test 
     69        @NotTransactional 
    5970        public void testChangePwd() throws Exception { 
    6071                runSyncTest(new SyncTestHelper() { 
     
    7485        } 
    7586 
     87        @Test 
     88        @NotTransactional 
    7689        public void testEditUser() throws Exception { 
    7790                runSyncTest(new SyncTestHelper() { 
     
    96109        } 
    97110         
     111        @Test 
     112        @NotTransactional 
    98113        public void testCreateRoleAndPrivilege() throws Exception { 
    99114                runSyncTest(new SyncTestHelper() { 
     
    116131        } 
    117132         
     133        @Test 
     134        @NotTransactional 
    118135        public void testAddPrivilegeToRole() throws Exception { 
    119136                runSyncTest(new SyncTestHelper() {