From 8915d61aef2a6debe3b1e905f41bd952b82abe6c Mon Sep 17 00:00:00 2001 From: Jean-Noel GUILLERME Date: Tue, 19 Dec 2017 13:39:14 +0100 Subject: [PATCH] Remove dependency on deprecated unittest.dart --- pubspec.lock | 134 +++++++++++++++++++++++++++++++++++++++----- pubspec.yaml | 2 +- test/mqtt_test.dart | 10 ++-- 3 files changed, 126 insertions(+), 20 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 278d05b..6d45c41 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -6,13 +6,13 @@ packages: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "0.25.0+1" + version: "0.30.0+4" args: description: name: args url: "https://pub.dartlang.org" source: hosted - version: "0.13.7" + version: "1.2.0" async: description: name: async @@ -25,12 +25,24 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.15.2+13" + boolean_selector: + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" charcode: description: name: charcode url: "https://pub.dartlang.org" source: hosted version: "1.1.1" + cli_util: + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2+1" collection: description: name: collection @@ -48,13 +60,31 @@ packages: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "0.9.1" + version: "2.0.2+1" + csslib: + description: + name: csslib + url: "https://pub.dartlang.org" + source: hosted + version: "0.14.1" + front_end: + description: + name: front_end + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.0-alpha.4.1" glob: description: name: glob url: "https://pub.dartlang.org" source: hosted version: "1.1.5" + html: + description: + name: html + url: "https://pub.dartlang.org" + source: hosted + version: "0.13.2" http: description: name: http @@ -66,31 +96,79 @@ packages: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "1.3.2" + version: "2.0.4" http_parser: description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "0.0.2+8" + version: "3.1.1" ini: description: name: ini url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + io: + description: + name: io + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.1" + isolate: + description: + name: isolate + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + js: + description: + name: js + url: "https://pub.dartlang.org" + source: hosted + version: "0.6.1" + kernel: + description: + name: kernel + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.0-alpha.1.1" + logging: + description: + name: logging + url: "https://pub.dartlang.org" + source: hosted + version: "0.11.3+1" matcher: description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.0+2" + version: "0.12.1+4" + meta: + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" mime: description: name: mime url: "https://pub.dartlang.org" source: hosted version: "0.9.5" + multi_server_socket: + description: + name: multi_server_socket + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + node_preamble: + description: + name: node_preamble + url: "https://pub.dartlang.org" + source: hosted + version: "1.4.0" package_config: description: name: package_config @@ -109,6 +187,12 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.5.1" + plugin: + description: + name: plugin + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.0+2" pool: description: name: pool @@ -126,7 +210,13 @@ packages: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "0.6.3" + version: "0.7.1" + shelf_packages_handler: + description: + name: shelf_packages_handler + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.3" shelf_static: description: name: shelf_static @@ -138,7 +228,7 @@ packages: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted - version: "0.0.1+5" + version: "0.2.2" source_map_stack_trace: description: name: source_map_stack_trace @@ -163,36 +253,54 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.9.1" + stream_channel: + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.2" string_scanner: description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "0.1.5" + version: "1.0.2" + term_glyph: + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" test: description: name: test url: "https://pub.dartlang.org" source: hosted - version: "0.12.3+9" + version: "0.12.29" typed_data: description: name: typed_data url: "https://pub.dartlang.org" source: hosted version: "1.1.5" - unittest: + utf: description: - name: unittest + name: utf url: "https://pub.dartlang.org" source: hosted - version: "0.12.3" + version: "0.9.0+3" watcher: description: name: watcher url: "https://pub.dartlang.org" source: hosted version: "0.9.7+4" + web_socket_channel: + description: + name: web_socket_channel + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.6" yaml: description: name: yaml diff --git a/pubspec.yaml b/pubspec.yaml index 7bd49dc..e7d9847 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,4 +5,4 @@ description: mqtt dart client library homepage: https://github.com/jnguillerme/mqtt.dart dependencies: ini: '>=1.0.0' - unittest: '>=0.11.0' + test: '>=0.12.0' diff --git a/test/mqtt_test.dart b/test/mqtt_test.dart index 9e52758..a8f6b2c 100644 --- a/test/mqtt_test.dart +++ b/test/mqtt_test.dart @@ -1,5 +1,4 @@ -import 'package:unittest/unittest.dart'; -import 'package:unittest/vm_config.dart'; +import 'package:test/test.dart'; import '../lib/mqtt_shared.dart'; @@ -12,13 +11,12 @@ class MqttMessagePublishMatcher extends Matcher { return (_expected == actual); } - Description describe(Description description) { - description.add("MqttMessage"); - } + describe(Description description) { + return description.add("MqttMessage"); + } } main() { - useVMConfiguration(); testPublish("MqttMessagePublish QOS(0) - no retain", QOS_0, 0); testPublish("MqttMessagePublish QOS(1) - no retain", QOS_1, 0);