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/SyncOnDeleteTest.java

    r4096 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 org.openmrs.Location; 
    1725import org.openmrs.Patient; 
     
    2230import org.openmrs.api.context.Context; 
    2331import org.openmrs.PersonAttributeType; 
     32import org.springframework.test.annotation.NotTransactional; 
    2433 
    2534/** 
     
    3342    } 
    3443 
     44        @Test 
     45    @NotTransactional 
    3546        public void testDeletePatientIdentfierType() throws Exception { 
    3647                runSyncTest(new SyncTestHelper() { 
     
    5364                }); 
    5465        }        
     66         
     67        @Test 
     68    @NotTransactional 
    5569        public void testDeleteRelationshipType() throws Exception { 
    5670                runSyncTest(new SyncTestHelper() { 
     
    7286                        } 
    7387                }); 
    74         }        
     88        } 
     89         
     90        @Test 
     91    @NotTransactional 
    7592        public void testDeletePersonAttributeType() throws Exception { 
    7693                runSyncTest(new SyncTestHelper() { 
     
    93110                }); 
    94111        } 
     112         
     113        @Test 
     114    @NotTransactional 
    95115        public void testDeletePatientName() throws Exception { 
    96116                runSyncTest(new SyncTestHelper() { 
     
    116136                }); 
    117137        } 
     138         
     139        @Test 
     140    @NotTransactional 
    118141        public void testDeletePatient() throws Exception { 
    119142                runSyncTest(new SyncTestHelper() {