Last change
on this file since 248 was 191, checked in by KOBAYASHI, Shinji, 15 years ago |
test cases rearrangement
|
File size:
888 bytes
|
Rev | Line | |
---|
[191] | 1 | require 'test/unit'
|
---|
| 2 | require 'set'
|
---|
| 3 |
|
---|
| 4 | #include OpenEhr::RM::DataStructures
|
---|
| 5 | #include OpenEhr::RM::DataStructures::ItemStructure
|
---|
| 6 |
|
---|
| 7 | class RmDataStructureTest < Test::Unit::TestCase
|
---|
| 8 | def setup
|
---|
| 9 | name = OpenEhr::RM::DataTypes::Text::DvText.new('blood')
|
---|
| 10 | uid = OpenEhr::RM::Support::Identification::UidBasedId.new('ehr::test-1')
|
---|
| 11 | links = Set.new([uid])
|
---|
| 12 | assert_nothing_raised(Exception){
|
---|
| 13 | @data_structure = OpenEhr::RM::DataStructures::DataStructure.new(:archetype_node_id => 'test',
|
---|
| 14 | :name => name,
|
---|
| 15 | :links => links) }
|
---|
| 16 | end
|
---|
| 17 |
|
---|
| 18 | def test_init
|
---|
| 19 | assert_instance_of OpenEhr::RM::DataStructures::DataStructure, @data_structure
|
---|
| 20 | end
|
---|
| 21 |
|
---|
| 22 | def test_data_structure
|
---|
| 23 | assert_raise(NotImplementedError){@data_structure.as_hierarchy}
|
---|
| 24 | end
|
---|
| 25 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.