Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: dart/editor/util/plugins/com.google.dart.java2dart/resources/java_junit.dart

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 25 matching lines...) Expand all
36 } 36 }
37 static void assertEqualsMsg(String msg, expected, actual) { 37 static void assertEqualsMsg(String msg, expected, actual) {
38 expect(actual, equalsMsg(msg, expected)); 38 expect(actual, equalsMsg(msg, expected));
39 } 39 }
40 static void assertSame(expected, actual) { 40 static void assertSame(expected, actual) {
41 expect(actual, same(expected)); 41 expect(actual, same(expected));
42 } 42 }
43 static void assertSameMsg(String msg, expected, actual) { 43 static void assertSameMsg(String msg, expected, actual) {
44 expect(actual, sameMsg(msg, expected)); 44 expect(actual, sameMsg(msg, expected));
45 } 45 }
46 static void assertNotSame(expected, actual) {
47 expect(actual, notSame(expected));
48 }
46 } 49 }
47 50
48 runJUnitTest(testInstance, Function testFunction) { 51 runJUnitTest(testInstance, Function testFunction) {
49 testInstance.setUp(); 52 testInstance.setUp();
50 try { 53 try {
51 testFunction(); 54 testFunction();
52 } finally { 55 } finally {
53 testInstance.tearDown(); 56 testInstance.tearDown();
54 } 57 }
55 } 58 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 class _IsNotNullWithMessage extends Matcher { 120 class _IsNotNullWithMessage extends Matcher {
118 final String msg; 121 final String msg;
119 const _IsNotNullWithMessage(this.msg); 122 const _IsNotNullWithMessage(this.msg);
120 bool matches(item, Map matchState) { 123 bool matches(item, Map matchState) {
121 return item != null; 124 return item != null;
122 } 125 }
123 Description describe(Description mismatchDescription) { 126 Description describe(Description mismatchDescription) {
124 return mismatchDescription.replace(msg); 127 return mismatchDescription.replace(msg);
125 } 128 }
126 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698