OLD | NEW |
1 library java.junit; | 1 library java.junit; |
2 | 2 |
3 import 'package:unittest/unittest.dart' hide fail; | 3 import 'package:unittest/unittest.dart' hide fail; |
4 import 'package:unittest/unittest.dart' as _ut show fail; | 4 import 'package:unittest/unittest.dart' as _ut show fail; |
5 | 5 |
6 | 6 |
7 class JUnitTestCase { | 7 class JUnitTestCase { |
8 void setUp() {} | 8 void setUp() {} |
9 void tearDown() {} | 9 void tearDown() {} |
10 static void fail(String msg) { | 10 static void fail(String msg) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 class _IsNotNullWithMessage extends Matcher { | 117 class _IsNotNullWithMessage extends Matcher { |
118 final String msg; | 118 final String msg; |
119 const _IsNotNullWithMessage(this.msg); | 119 const _IsNotNullWithMessage(this.msg); |
120 bool matches(item, Map matchState) { | 120 bool matches(item, Map matchState) { |
121 return item != null; | 121 return item != null; |
122 } | 122 } |
123 Description describe(Description mismatchDescription) { | 123 Description describe(Description mismatchDescription) { |
124 return mismatchDescription.replace(msg); | 124 return mismatchDescription.replace(msg); |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |