Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.consol.tests.ObserverContextTest

NameTestsErrorsFailuresTime(s)Time StampHost
ObserverContextTest3000.0122013-01-31T13:35:36JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateObserverContextTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:9194, CONF:10536 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.6.2.4"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.6.2.4')

SuccessInvalid XML


<author xmlns="urn:hl7-org:v3"/>

Valid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.4"/>
</author>

0.003
testValidateObserverContextAssignedAuthor

Constraint

Consol Observer Context SHALL contain exactly one [1..1] assignedAuthor (CONF:9195)

OCL

self.assignedAuthor->one(assignedAuthor : cda::AssignedAuthor | not assignedAuthor.oclIsUndefined() and assignedAuthor.oclIsKindOf(cda::AssignedAuthor))

SuccessInvalid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.4"/>
</author>

Valid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.4"/>
<assignedAuthor/>
</author>

0.003
Properties »