Changeset 292 for ruby/trunk/lib/models/tests/rm/test_common.rb
- Timestamp:
- Sep 24, 2009, 6:47:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/rm/test_common.rb
r291 r292 86 86 class RM_Common_Archetyped_Test < Test::Unit::TestCase 87 87 def setup 88 <<<<<<< .working 89 @dv_text = OpenEHR::RM::Data_Types::Text::DV_Text.new('Test') 90 @uid_based_id = OpenEHR::RM::Support::Identification::UID_Based_ID.new('rrip::0.0.5') 91 @archetype_id = OpenEHR::RM::Support::Identification::Archetype_ID.new('openEHR-EHR-SECTION.physical_examination-prenatal.v2') 92 @template_id = OpenEHR::RM::Support::Identification::Template_ID.new('1.0.1') 93 assert_nothing_raised(Exception){@archetyped = OpenEHR::RM::Common::Archetyped::Archetyped.new(@archetype_id, '1.0.1')} 94 assert_nothing_raised(Exception){@link = OpenEHR::RM::Common::Archetyped::Link.new(OpenEHR::RM::Data_Types::Text::DV_Text.new("generic"), OpenEHR::RM::Data_Types::URI::DV_EHR_URI.new("ehr://test/"),OpenEHR::RM::Data_Types::Text::DV_Text.new("problem"))} 95 ======= 88 96 89 @dv_text = OpenEhr::RM::DataTypes::Text::DvText.new('Test') 97 90 @uid_based_id = OpenEhr::RM::Support::Identification::UidBasedId.new('rrip::0.0.5') … … 100 93 assert_nothing_raised(Exception){@archetyped = OpenEhr::RM::Common::Archetyped::Archetyped.new(@archetype_id, '1.0.1')} 101 94 assert_nothing_raised(Exception){@link = OpenEhr::RM::Common::Archetyped::Link.new(OpenEhr::RM::DataTypes::Text::DvText.new("generic"), OpenEhr::RM::DataTypes::Uri::DvEhrUri.new("ehr://test/"),OpenEhr::RM::DataTypes::Text::DvText.new("problem"))} 102 >>>>>>> .merge-right.r168103 95 assert_nothing_raised(Exception){ 104 96 @pathable = OpenEhr::RM::Common::Archetyped::Pathable.new } … … 153 145 assert_nothing_raised(Exception){@archetyped.template_id = @template_id} 154 146 assert_equal @template_id, @archetyped.template_id 155 <<<<<<< .working156 archetype_id2 = OpenEHR::RM::Support::Identification::Archetype_ID.new('openEHR-EHR-SECTION.physical_examination-prenatal.v2')157 =======158 147 archetype_id2 = OpenEhr::RM::Support::Identification::ArchetypeId.new("1.0.2", "biochemistry result_cholesterol", "entry", "ehr_rm", "openehr","cholesterol","0.0.3") 159 >>>>>>> .merge-right.r168160 148 assert_nothing_raised(ArgumentError){@archetyped.archetype_id = archetype_id2} 161 149 assert_equal archetype_id2, @archetyped.archetype_id
Note:
See TracChangeset
for help on using the changeset viewer.