Rev | Line | |
---|
[129] | 1 | require 'test/unit'
|
---|
| 2 | require 'set'
|
---|
| 3 | require 'rm'
|
---|
| 4 |
|
---|
[165] | 5 | include OpenEHR::RM::Data_Structures
|
---|
| 6 | include OpenEHR::RM::Data_Structures::Item_Structure
|
---|
[129] | 7 |
|
---|
| 8 | class RmDataStructureTest < Test::Unit::TestCase
|
---|
| 9 | def setup
|
---|
| 10 | name = OpenEHR::RM::Data_Types::Text::DV_Text.new('blood')
|
---|
| 11 | uid = OpenEHR::RM::Support::Identification::UID_Based_ID.new('ehr::test-1')
|
---|
| 12 | links = Set.new([uid])
|
---|
| 13 | assert_nothing_raised(Exception){
|
---|
[162] | 14 | @data_structure = OpenEHR::RM::Data_Structures::Data_Structure.new(:archetype_node_id => 'test',
|
---|
| 15 | :name => name,
|
---|
| 16 | :links => links) }
|
---|
[129] | 17 | end
|
---|
| 18 |
|
---|
| 19 | def test_init
|
---|
| 20 | assert_instance_of OpenEHR::RM::Data_Structures::Data_Structure, @data_structure
|
---|
| 21 | end
|
---|
| 22 |
|
---|
| 23 | def test_data_structure
|
---|
| 24 | assert_raise(NotImplementedError){@data_structure.as_hierarchy}
|
---|
| 25 | end
|
---|
| 26 | end
|
---|
[165] | 27 |
|
---|
| 28 | class RmDataStructureItemStructureTest < Test::Unit::TestCase
|
---|
| 29 | def setup
|
---|
| 30 | assert_nothing_raised(Exception){
|
---|
| 31 |
|
---|
| 32 | end
|
---|
| 33 |
|
---|
| 34 | def test_init
|
---|
| 35 | end
|
---|
| 36 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.