hybridgroup.gobot/platforms/mqtt/mqtt_adaptor_test.go

21 lines
375 B
Go
Raw Normal View History

2014-11-04 10:30:56 +08:00
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)
}