@@ -48,21 +48,50 @@ describe('Connector Tests', function () {
4848 const connector = new rti . Connector ( participantProfile , xmlProfile )
4949 expect ( connector ) . to . exist
5050 expect ( connector ) . to . be . instanceOf ( rti . Connector )
51+ connector . close ( )
5152 } )
5253
53- it ( 'Multiple Connector objects can be instantiated' , function ( ) {
54+ it ( 'Multiple Connector objects can be instantiated' , ( ) => {
5455 const participantProfile = 'MyParticipantLibrary::Zero'
5556 const xmlProfile = path . join ( __dirname , '/../xml/TestConnector.xml' )
5657 const connectors = [ ]
57- for ( var i = 0 ; i < 5 ; i ++ ) {
58+ for ( var i = 0 ; i < 3 ; i ++ ) {
5859 connectors . push ( new rti . Connector ( participantProfile , xmlProfile ) )
5960 }
6061 connectors . forEach ( ( connector ) => {
6162 expect ( connector ) . to . exist
6263 expect ( connector ) . to . be . instanceOf ( rti . Connector )
64+ connector . close ( )
6365 } )
6466 } )
6567
68+ // Test for CON-163
69+ it ( 'Multiple Connector obejcts can be instantiated without participant QoS' , ( ) => {
70+ const participantProfile = 'MyParticipantLibrary::MyParticipant'
71+ const xmlProfile = path . join ( __dirname , '/../xml/TestConnector3.xml' )
72+ const connectors = [ ]
73+ for ( var i = 0 ; i < 2 ; i ++ ) {
74+ connectors . push ( new rti . Connector ( participantProfile , xmlProfile ) )
75+ }
76+ connectors . forEach ( ( connector ) => {
77+ expect ( connector ) . to . exist
78+ expect ( connector ) . to . be . instanceOf ( rti . Connector )
79+ connector . close ( )
80+ } )
81+ } )
82+
83+ it ( 'Load two XML files using the url group syntax' , function ( ) {
84+ const xmlProfile1 = path . join ( __dirname , '/../xml/TestConnector.xml' )
85+ const xmlProfile2 = path . join ( __dirname , '/../xml/TestConnector2.xml' )
86+ const fullXmlPath = xmlProfile1 + ';' + xmlProfile2
87+ const connector = new rti . Connector ( 'MyParticipantLibrary2::MyParticipant2' , fullXmlPath )
88+ expect ( connector ) . to . exist
89+ expect ( connector ) . to . be . instanceOf ( rti . Connector )
90+ const output = connector . getOutput ( 'MyPublisher2::MySquareWriter2' )
91+ expect ( output ) . to . exist
92+ connector . close ( )
93+ } )
94+
6695 describe ( 'Connector callback test' , function ( ) {
6796 let connector
6897
0 commit comments