Ignore:
Timestamp:
Jul 5, 2009, 11:01:59 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

fixed #62
refs #49,#39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/tests/rm/test_support.rb

    r119 r157  
    2424    assert_nothing_raised(Exception){@access_group_ref = OpenEHR::RM::Support::Identification::Access_Group_Ref.new('unknown', 'ACCESS_GROUP', @object_id)}
    2525    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')}
    2627  end
    2728 
     
    3940    assert_instance_of OpenEHR::RM::Support::Identification::Access_Group_Ref, @access_group_ref
    4041    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
    4143  end
    4244
     
    218220  end
    219221
     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
    220229  def test_locatable_ref
    221230# test constructor
Note: See TracChangeset for help on using the changeset viewer.