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

Unified Diff: pkg/analyzer/test/generated/source_factory_test.dart

Issue 2326813002: Replace and remove JavaException(s). (Closed)
Patch Set: Created 4 years, 3 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: pkg/analyzer/test/generated/source_factory_test.dart
diff --git a/pkg/analyzer/test/generated/source_factory_test.dart b/pkg/analyzer/test/generated/source_factory_test.dart
index 77f9d740270368f40125fcb66023ab738c4ae1a9..c8eb8f2d969be80aeed50f73d6f513323c30f1b2 100644
--- a/pkg/analyzer/test/generated/source_factory_test.dart
+++ b/pkg/analyzer/test/generated/source_factory_test.dart
@@ -239,14 +239,13 @@ class SourceFactoryTest {
void test_fromEncoding_invalidUri() {
SourceFactory factory = new SourceFactory([]);
- expect(() => factory.fromEncoding("<:&%>"),
- throwsA(new isInstanceOf<IllegalArgumentException>()));
+ expect(() => factory.fromEncoding("<:&%>"), throwsArgumentError);
}
void test_fromEncoding_noResolver() {
SourceFactory factory = new SourceFactory([]);
expect(() => factory.fromEncoding("foo:/does/not/exist.dart"),
- throwsA(new isInstanceOf<IllegalArgumentException>()));
+ throwsArgumentError);
}
void test_fromEncoding_valid() {

Powered by Google App Engine
This is Rietveld 408576698