2014-02-27 22:44:53 +08:00
|
|
|
"use strict";
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
var Adaptor = require("../adaptor"),
|
|
|
|
Utils = require("../utils");
|
2014-05-07 09:18:20 +08:00
|
|
|
|
2015-06-12 03:16:43 +08:00
|
|
|
var TestAdaptor = module.exports = function TestAdaptor() {
|
2014-05-07 09:56:13 +08:00
|
|
|
TestAdaptor.__super__.constructor.apply(this, arguments);
|
|
|
|
};
|
2014-02-27 22:44:53 +08:00
|
|
|
|
2014-06-06 03:11:37 +08:00
|
|
|
Utils.subclass(TestAdaptor, Adaptor);
|
2014-02-27 22:44:53 +08:00
|
|
|
|
2016-07-27 01:16:57 +08:00
|
|
|
|
|
|
|
TestAdaptor.prototype.connect = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
|
|
|
TestAdaptor.prototype.disconnect = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
TestAdaptor.adaptors = ["test"];
|
2014-05-07 09:56:13 +08:00
|
|
|
TestAdaptor.adaptor = function(opts) { return new TestAdaptor(opts); };
|