| Index: pkg/analysis_server/test/protocol_test.dart
|
| diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
|
| index 61d9855dc3574a6e7aed10d106d7f8c29f634e4d..77ffad96659f0b4998136c83f7b40668126cc57b 100644
|
| --- a/pkg/analysis_server/test/protocol_test.dart
|
| +++ b/pkg/analysis_server/test/protocol_test.dart
|
| @@ -8,9 +8,10 @@ import 'dart:convert';
|
|
|
| import 'package:analysis_server/src/constants.dart';
|
| import 'package:analysis_server/src/protocol.dart';
|
| -import 'reflective_tests.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| +import 'reflective_tests.dart';
|
| +
|
|
|
| Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>());
|
|
|
| @@ -73,6 +74,15 @@ class NotificationTest {
|
| }));
|
| }
|
|
|
| + void test_toJson_noParams() {
|
| + Notification notification = new Notification('foo');
|
| + expect(notification.event, equals('foo'));
|
| + expect(notification.toJson().keys, isNot(contains('params')));
|
| + expect(notification.toJson(), equals({
|
| + 'event': 'foo'
|
| + }));
|
| + }
|
| +
|
| void test_toJson_withParams() {
|
| Notification notification = new Notification('foo', {
|
| 'x': 'y'
|
| @@ -88,15 +98,6 @@ class NotificationTest {
|
| }
|
| }));
|
| }
|
| -
|
| - void test_toJson_noParams() {
|
| - Notification notification = new Notification('foo');
|
| - expect(notification.event, equals('foo'));
|
| - expect(notification.toJson().keys, isNot(contains('params')));
|
| - expect(notification.toJson(), equals({
|
| - 'event': 'foo'
|
| - }));
|
| - }
|
| }
|
|
|
|
|
|
|