Changeset 118 for ruby/trunk/lib/models/tests
- Timestamp:
- Apr 25, 2009, 12:56:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/test_reference_model.rb
r117 r118 504 504 def setup 505 505 assert_nothing_raised(Exception){@party_proxy = OpenEHR::RM::Common::Generic::Party_Proxy.new} 506 # assert_nothing_raised(Exception){@audit_details = OpenEHR::RM::Common::Generic::Audit_Details.new('pikachu', @party_proxy, OpenEHR::RM::Data_Types::Quantity::Date_Time::DV_DATE_TIME.new(2008))} 506 change_type = OpenEHR::Data_Types::Text::DV_TEXT.new('audit_type') 507 time_committed = OpenEHR::RM::Data_Types::Quantity::Date_Time::DV_DATE_TIME.new(2008) 508 assert_nothing_raised(Exception){@audit_details = OpenEHR::RM::Common::Generic::Audit_Details.new('rails',@party_proxy, change_type, time_committed)} 507 509 end 508 510 def test_init … … 528 530 class RM_Common_Change_Control_Test < Test::Unit::TestCase 529 531 def setup 530 assert_nothing_raised(Exception){} 531 assert_nothing_raised(Exception){@version = OpenEHR::RM::Common::Change_Control::Contribution.new()} 532 end 533 end 532 hier_object_id = OpenEHR::RM::Support::Identification::Hier_Object_ID.new('0.0.4') 533 object_id = OpenEHR::RM::Support::Identification::Object_ID.new("0.0.3") 534 object_ref = OpenEHR::RM::Support::Identification::Object_Ref.new('local', 'ANY', @object_id) 535 versions = Set.new(object_ref) 536 assert_nothing_raised(Exception){@version = OpenEHR::RM::Common::Change_Control::Version.new(hier_object_id, versions)} 537 assert_nothing_raised(Exception){@contribution = OpenEHR::RM::Common::Change_Control::Contribution.new(hier_object_id, versions)} 538 end 539 def test_init 540 assert_instace_of OpenEHR::RM::Common::Change_Control::Contribution @contribution 541 assert_instace_of OpenEHR::RM::Common::Change_Control::Version @version 542 end 543 def test_contribution 544 assert 545 end 546 def test_version 547 end 548 end
Note:
See TracChangeset
for help on using the changeset viewer.