Line | |
---|
1 | # This module is implemented from this UML:
|
---|
2 | #http://www.openehr.org/svn/specification/TAGS/Release-1.0.2/publishing/architecture/computable/UML/uml_start_view.html
|
---|
3 | # Ticket refs #59
|
---|
4 | require 'test/unit'
|
---|
5 | require 'set'
|
---|
6 | require 'rm'
|
---|
7 |
|
---|
8 |
|
---|
9 | class RmDataStructureTest < Test::Unit::TestCase
|
---|
10 | def setup
|
---|
11 | name = OpenEHR::RM::Data_Types::Text::DV_Text.new('blood')
|
---|
12 | uid = OpenEHR::RM::Support::Identification::UID_Based_ID.new('ehr::test-1')
|
---|
13 | links = Set.new([uid])
|
---|
14 | assert_nothing_raised(Exception){
|
---|
15 | @data_structure = OpenEHR::RM::Data_Structures::Data_Structure.new(:archetype_node_id => 'test',
|
---|
16 | :name => name,
|
---|
17 | :links => links) }
|
---|
18 | end
|
---|
19 |
|
---|
20 | def test_init
|
---|
21 | assert_instance_of OpenEHR::RM::Data_Structures::Data_Structure, @data_structure
|
---|
22 | end
|
---|
23 |
|
---|
24 | def test_data_structure
|
---|
25 | assert_raise(NotImplementedError){@data_structure.as_hierarchy}
|
---|
26 | end
|
---|
27 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.