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

    r5138 r5215  
    1313 */ 
    1414package org.openmrs.test.synchronization.engine; 
     15 
     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; 
    1523 
    1624import java.util.ArrayList; 
     
    2937import org.openmrs.api.ProgramWorkflowService; 
    3038import org.openmrs.api.context.Context; 
     39import org.springframework.test.annotation.NotTransactional; 
    3140 
    3241/** 
     
    4049    } 
    4150 
     51        @Test 
     52    @NotTransactional 
    4253        public void testCreateProgram() throws Exception { 
    4354                runSyncTest(new SyncTestHelper() { 
     
    94105                }); 
    95106        } 
    96          
     107 
     108        @Test 
     109    @NotTransactional 
    97110        public void testEditProgram() throws Exception { 
    98111                runSyncTest(new SyncTestHelper() { 
     
    121134        } 
    122135 
    123          
     136        @Test 
     137    @NotTransactional    
    124138        public void testCreateLocation() throws Exception { 
    125139                runSyncTest(new SyncTestHelper() { 
     
    135149                }); 
    136150        } 
    137          
     151 
     152        @Test 
     153    @NotTransactional 
    138154        public void testEditLocation() throws Exception { 
    139155                runSyncTest(new SyncTestHelper() {