@ -25,7 +25,13 @@ func TestClient_Connect(t *testing.T) {
mock . Start ( t , testXMPPAddress , handlerConnectSuccess )
// Test / Check result
config := Config { Address : testXMPPAddress , Jid : "test@localhost" , Credential : Password ( "test" ) , Insecure : true }
config := Config {
TransportConfiguration : TransportConfiguration {
Address : testXMPPAddress ,
} ,
Jid : "test@localhost" ,
Credential : Password ( "test" ) ,
Insecure : true }
var client * Client
var err error
@ -47,7 +53,13 @@ func TestClient_NoInsecure(t *testing.T) {
mock . Start ( t , testXMPPAddress , handlerAbortTLS )
// Test / Check result
config := Config { Address : testXMPPAddress , Jid : "test@localhost" , Credential : Password ( "test" ) }
config := Config {
TransportConfiguration : TransportConfiguration {
Address : testXMPPAddress ,
} ,
Jid : "test@localhost" ,
Credential : Password ( "test" ) ,
}
var client * Client
var err error
@ -71,7 +83,13 @@ func TestClient_FeaturesTracking(t *testing.T) {
mock . Start ( t , testXMPPAddress , handlerAbortTLS )
// Test / Check result
config := Config { Address : testXMPPAddress , Jid : "test@localhost" , Credential : Password ( "test" ) }
config := Config {
TransportConfiguration : TransportConfiguration {
Address : testXMPPAddress ,
} ,
Jid : "test@localhost" ,
Credential : Password ( "test" ) ,
}
var client * Client
var err error
@ -94,7 +112,14 @@ func TestClient_RFC3921Session(t *testing.T) {
mock . Start ( t , testXMPPAddress , handlerConnectWithSession )
// Test / Check result
config := Config { Address : testXMPPAddress , Jid : "test@localhost" , Credential : Password ( "test" ) , Insecure : true }
config := Config {
TransportConfiguration : TransportConfiguration {
Address : testXMPPAddress ,
} ,
Jid : "test@localhost" ,
Credential : Password ( "test" ) ,
Insecure : true ,
}
var client * Client
var err error