| Index: test/message_test.dart
|
| diff --git a/test/message_test.dart b/test/message_test.dart
|
| index 62af81c3e0c1a018d3530e0113431fb94ef12ec3..5fcf4ca54c0665e6a0722083ce1faff269a3cae0 100644
|
| --- a/test/message_test.dart
|
| +++ b/test/message_test.dart
|
| @@ -7,19 +7,19 @@ library message_test;
|
|
|
| import 'package:test/test.dart' show test, expect, predicate, throwsA;
|
|
|
| -import 'mock_util.dart' show MockMessage;
|
| +import 'mock_util.dart' show MockMessage, mockInfo;
|
|
|
| class Rec extends MockMessage {
|
| - get className => "Rec";
|
| - Rec create() => new Rec();
|
| + get info_ => _info;
|
| + static final _info = mockInfo("Rec", () => new Rec());
|
| }
|
|
|
| -throwsError(Type expectedType, String expectedMessage) => throwsA(
|
| - predicate((x) {
|
| - expect(x.runtimeType, expectedType);
|
| - expect(x.message, expectedMessage);
|
| - return true;
|
| -}));
|
| +throwsError(Type expectedType, String expectedMessage) =>
|
| + throwsA(predicate((x) {
|
| + expect(x.runtimeType, expectedType);
|
| + expect(x.message, expectedMessage);
|
| + return true;
|
| + }));
|
|
|
| main() {
|
| test('getField with invalid tag throws exception', () {
|
|
|