Skip to content

Commit

Permalink
Remove dependency on deprecated unittest.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Noel GUILLERME committed Dec 19, 2017
1 parent e8d08c5 commit 8915d61
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 20 deletions.
134 changes: 121 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
10 changes: 4 additions & 6 deletions test/mqtt_test.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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);
Expand Down

0 comments on commit 8915d61

Please sign in to comment.