Changeset 157 for ruby/trunk/lib/models/tests/rm/test_support.rb
- Timestamp:
- Jul 5, 2009, 11:01:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/rm/test_support.rb
r119 r157 24 24 assert_nothing_raised(Exception){@access_group_ref = OpenEHR::RM::Support::Identification::Access_Group_Ref.new('unknown', 'ACCESS_GROUP', @object_id)} 25 25 assert_nothing_raised(Exception){@version_tree_id = OpenEHR::RM::Support::Identification::Version_Tree_ID.new('1.2.3')} 26 assert_nothing_raised(Exception){@object_version_id = OpenEHR::RM::Support::Identification::Object_Version_ID.new('ABC::DEF::1.2.3')} 26 27 end 27 28 … … 39 40 assert_instance_of OpenEHR::RM::Support::Identification::Access_Group_Ref, @access_group_ref 40 41 assert_instance_of OpenEHR::RM::Support::Identification::Version_Tree_ID, @version_tree_id 42 assert_instance_of OpenEHR::RM::Support::Identification::Object_Version_ID, @object_version_id 41 43 end 42 44 … … 218 220 end 219 221 222 def test_object_version_id 223 assert_equal 'ABC::DEF::1.2.3', @object_version_id.value 224 assert_equal 'ABC', @object_version_id.object_id.value 225 assert_equal 'DEF', @object_version_id.creating_system_id.value 226 assert_equal '1', @object_version_id.version_tree_id.trunk_version 227 end 228 220 229 def test_locatable_ref 221 230 # test constructor
Note:
See TracChangeset
for help on using the changeset viewer.