21 lines
375 B
Go
21 lines
375 B
Go
package mqtt
|
|
|
|
import (
|
|
"github.com/hybridgroup/gobot"
|
|
"testing"
|
|
)
|
|
|
|
func initTestMqttAdaptor() *MqttAdaptor {
|
|
return NewMqttAdaptor("mqtt")
|
|
}
|
|
|
|
func TestMqttAdaptorConnect(t *testing.T) {
|
|
a := initTestMqttAdaptor()
|
|
gobot.Assert(t, a.Connect(), true)
|
|
}
|
|
|
|
func TestMqttAdaptorFinalize(t *testing.T) {
|
|
a := initTestMqttAdaptor()
|
|
gobot.Assert(t, a.Finalize(), true)
|
|
}
|