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

    r4121 r5215  
    1414package org.openmrs.test.synchronization.engine; 
    1515 
    16 import java.util.HashSet; 
    17 import java.util.List; 
    18 import java.util.Locale; 
    19 import java.util.Set; 
    20 import java.util.UUID; 
     16import static org.junit.Assert.assertEquals; 
     17import static org.junit.Assert.assertFalse; 
     18import static org.junit.Assert.assertNull; 
     19import static org.junit.Assert.assertNotNull; 
     20import org.junit.Test; 
     21 
    2122import java.util.Calendar; 
    2223 
    23 import org.openmrs.Concept; 
    24 import org.openmrs.ConceptAnswer; 
    25 import org.openmrs.ConceptName; 
    26 import org.openmrs.ConceptNumeric; 
    27 import org.openmrs.ConceptSet; 
    28 import org.openmrs.ConceptSynonym; 
    2924import org.openmrs.Encounter; 
    3025import org.openmrs.EncounterType; 
    3126import org.openmrs.api.AdministrationService; 
    32 import org.openmrs.api.ConceptService; 
    3327import org.openmrs.api.EncounterService; 
    3428import org.openmrs.api.context.Context; 
     29import org.springframework.test.annotation.NotTransactional; 
    3530 
    3631/** 
     
    4439    } 
    4540 
     41        @Test 
     42    @NotTransactional 
    4643        public void testCreateEncounterType() throws Exception { 
    4744                runSyncTest(new SyncTestHelper() {                       
     
    6360        }        
    6461 
    65          
    66          
     62        @Test 
     63    @NotTransactional 
    6764        public void testUpdateEncounterType() throws Exception { 
    6865                runSyncTest(new SyncTestHelper() {                       
     
    9087        } 
    9188         
    92          
     89        @Test 
     90    @NotTransactional 
    9391        public void testDeleteEncounterType() throws Exception {  
    9492                 
     
    107105        } 
    108106 
     107        @Test 
     108    @NotTransactional 
    109109        public void testCreateEncounter() throws Exception { 
    110110                runSyncTest(new SyncTestHelper() {                       
     
    133133        }        
    134134 
     135        @Test 
     136    @NotTransactional 
    135137        public void testDeleteEncounter() throws Exception { 
    136138                runSyncTest(new SyncTestHelper() {