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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java

Issue 14308011: New Analysis Engine snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java
index 62e714e5089fa1a3e0d4ee17ed66a7c838032f32..df832614e6ce40d165306ebe20fdea6d8d8f5608 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/JUnitSemanticProcessor.java
@@ -117,6 +117,12 @@ public class JUnitSemanticProcessor extends SemanticProcessor {
"junit.framework.Assert")) {
node.setMethodName(identifier("assertFalseMsg"));
}
+ if (isMethodInClass2(
+ node,
+ "assertNotNull(java.lang.String,java.lang.Object)",
+ "junit.framework.Assert")) {
+ node.setMethodName(identifier("assertNotNullMsg"));
+ }
if (name.equals("assertEquals")) {
if (args.size() == 3) {
node.setMethodName(identifier("assertEqualsMsg"));

Powered by Google App Engine
This is Rietveld 408576698