@@ -721,6 +721,7 @@ void ErrorConditions_Error_references() throws Exception {
721721 assertThat (containsReference (ReferenceTypeIds .HasComponent , new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/ActiveState" ), new NodeId (0 , 63 ), references )).isTrue ();
722722 assertThat (containsReference (ReferenceTypeIds .HasProperty , new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/InputNode" ), new NodeId (0 , 68 ), references )).isTrue ();
723723 assertThat (containsReference (ReferenceTypeIds .HasProperty , new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/SuppressedOrShelved" ), new NodeId (0 , 68 ), references )).isTrue ();
724+ assertThat (containsReference (ReferenceTypeIds .HasComponent , new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/Quality" ), new NodeId (0 , 63 ), references )).isTrue ();
724725 }
725726
726727 @ Test
@@ -742,6 +743,43 @@ void ErrorConditions_Error_attributes() throws Exception {
742743 );
743744 }
744745
746+ @ Test
747+ void ErrorConditions_Error_Quality_TypeDefinition () throws Exception {
748+ var typeDefinition = client .getAddressSpace ().getTypeDefinition (new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/Quality" ));
749+
750+ assertThat (typeDefinition ).isEqualTo (new ExpandedNodeId (new NodeId (0 , 63 )));
751+ }
752+
753+ @ Test
754+ void ErrorConditions_Error_Quality_references () throws Exception {
755+ var references = client .getAddressSpace ().browse (new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/Quality" ));
756+
757+ assertThat (references ).isEmpty ();
758+ }
759+
760+ @ Test
761+ void ErrorConditions_Error_Quality_attributes () throws Exception {
762+ var browseId = new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/Quality" );
763+
764+ var nodeId = client .readAttribute (browseId , Attributes .NodeId );
765+ var nodeClass = client .readAttribute (browseId , Attributes .NodeClass );
766+ var browseName = client .readAttribute (browseId , Attributes .BrowseName );
767+ var displayName = client .readAttribute (browseId , Attributes .DisplayName );
768+ var description = client .readAttribute (browseId , Attributes .Description );
769+ var dataType = client .readAttribute (browseId , Attributes .DataType );
770+ var value = client .readAttribute (browseId , Attributes .Value );
771+
772+ assertAll (
773+ () -> assertThat (nodeId .getValue ().getValue ()).isEqualTo (browseId ),
774+ () -> assertThat (nodeClass .getValue ().getValue ()).isEqualTo (NodeClass .Variable .getValue ()),
775+ () -> assertThat (((QualifiedName ) browseName .getValue ().getValue ()).getName ()).isEqualTo ("Quality" ),
776+ () -> assertThat (((LocalizedText ) displayName .getValue ().getValue ()).getText ()).isEqualTo ("Quality" ),
777+ () -> assertThat (((LocalizedText ) description .getValue ().getValue ()).getText ()).isEqualTo ("" ),
778+ () -> assertThat (dataType .getValue ().getValue ()).isEqualTo (DataTypeIdentifiers .StatusCode ),
779+ () -> assertThat (value .getValue ().getValue ()).isEqualTo (StatusCodes .Uncertain )
780+ );
781+ }
782+
745783 @ Test
746784 void ErrorConditions_Error_ActiveState_TypeDefinition () throws Exception {
747785 var typeDefinition = client .getAddressSpace ().getTypeDefinition (new NodeId (NS , "CombiSteamerDevice_1/ErrorConditions/Error_801/ActiveState" ));
0 commit comments