Changeset 24 for ruby/trunk/models/tests


Ignore:
Timestamp:
May 1, 2008, 9:11:34 AM (16 years ago)
Author:
Tatsukawa, Akimichi
Message:

working on AM::Archetype::ARCHETYPE

Location:
ruby/trunk/models/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/models/tests/test_archetype_model.rb

    r23 r24  
    1818    assert_instance_of OpenEHR::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION_ITEM, @archetype_description_item
    1919    assert_instance_of OpenEHR::AM::Archetype::ARCHETYPE, @archetype
     20  end
     21
     22  def test_create
     23    archetype_instance = OpenEHR::AM::Archetype::ARCHETYPE.create() do |archetype|
     24      archetype.adl_version = '1.4'
     25    end
     26
     27    assert_instance_of OpenEHR::AM::Archetype::ARCHETYPE, archetype_instance
    2028  end
    2129end
  • ruby/trunk/models/tests/test_reference_model.rb

    r4 r24  
    55class ReferenceModelTest < Test::Unit::TestCase
    66  def setup
    7     @authored_resource = OpenEHR::RM::Common::Resource::Authored_Resource.new("ja","en","test")
    8     @translation_details = OpenEHR::RM::Common::Resource::Translation_Details.new(nil,nil,nil,nil,nil)
     7    @authored_resource = OpenEHR::RM::Common::Resource::AUTHORED_RESOURCE.new(:original_language => "ja",
     8                                                                              :translations => "en",
     9                                                                              :description => "test")
     10    @translation_details = OpenEHR::RM::Common::Resource::TRANSLATION_DETAILS.new(nil,nil,nil,nil,nil)
    911#    @openehr_definitions = OpenEHR::RM::Support::Definition::OpenEHR_Definitions.new
    1012    @dv_boolean = OpenEHR::RM::Data_Types::Basic::DV_Boolean.new("TRUE")
     
    1921 
    2022  def test_init
    21     assert_instance_of OpenEHR::RM::Common::Resource::Authored_Resource, @authored_resource
    22     assert_instance_of OpenEHR::RM::Common::Resource::Translation_Details, @translation_details
     23    assert_instance_of OpenEHR::RM::Common::Resource::AUTHORED_RESOURCE, @authored_resource
     24    assert_instance_of OpenEHR::RM::Common::Resource::TRANSLATION_DETAILS, @translation_details
    2325    assert_instance_of OpenEHR::RM::Data_Types::Basic::DV_Boolean, @dv_boolean
    2426    assert_instance_of OpenEHR::RM::Data_Types::Basic::DV_State, @dv_state
Note: See TracChangeset for help on using the changeset viewer.