9 #ifndef _ELEMENTURI_TEST_H_
10 #define _ELEMENTURI_TEST_H_
16 #include <cxxtest/TestSuite.h>
30 Str str(
" code=0006 elementURI=\"height_above_sea_floor\"\n" );
34 TS_ASSERT( NULL != elementURI );
35 if( NULL != elementURI )
37 TS_ASSERT_EQUALS( elementURI->
getCode(), 0x0006 );
38 TS_ASSERT_SAME_DATA( elementURI->
cStr(),
"height_above_sea_floor", 23 );
43 str =
" code=01CE elementURI=\"Batt_Ocean_Server.BattTemp_7\"";
47 TS_ASSERT( NULL != elementURI );
48 if( NULL != elementURI )
50 TS_ASSERT_EQUALS( elementURI->
getCode(), 0x01CE );
51 TS_ASSERT_SAME_DATA( elementURI->
cStr(),
"Batt_Ocean_Server.BattTemp_7", 29 );
60 #endif // _ELEMENTURI_TEST_H
void testRead(void)
Test ElementURI::Read.
Definition: ElementURI_Test.h:28
Wraps a Str with an IOStream class.
Definition: StrIOStream.h:24
Replacement for standard template class string.
Definition: Str.h:12
static ElementURI * Read(InStream &inStream)
Definition: ElementURI.cpp:162
Contains the ElementURI class definition.
const char * cStr() const
Definition: Str.h:188
unsigned short getCode() const
Definition: ElementURI.h:74
Contains the StrIOStream class declaration.
Code unit that represents a unique name for a DataElement.
Definition: ElementURI.h:27
Unit tests for ElementURI class.
Definition: ElementURI_Test.h:23
virtual bool isUniversal() const
Definition: ElementURI.h:84
void rewind()
Definition: StrIOStream.h:66