Update old links to point to dart.dev and pub.dev (#244)
diff --git a/.gitignore b/.gitignore
index 9f6d195..7621c58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-# See https://www.dartlang.org/guides/libraries/private-files
+# See https://dart.dev/guides/libraries/private-files
# Files and directories created by pub
.dart_tool
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9d485e1..5f40fbc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,8 +24,8 @@
## 4.0.0
* Replace the dependency on the
- _[test](https://pub.dartlang.org/packages/test)_ package with a dependency on
- the new _[test_api](https://pub.dartlang.org/packages/test_api)_ package.
+ _[test](https://pub.dev/packages/test)_ package with a dependency on
+ the new _[test_api](https://pub.dev/packages/test_api)_ package.
This dramatically reduces mockito's transitive dependencies.
This bump can result in runtime errors when coupled with a version of the
@@ -33,15 +33,15 @@
## 3.0.2
-* Rollback the _[test_api](https://pub.dartlang.org/packages/test_api)_ part of
+* Rollback the _[test_api](https://pub.dev/packages/test_api)_ part of
the 3.0.1 release. This was breaking tests that use Flutter's current test
tools, and will instead be released as part of Mockito 4.0.0.
## 3.0.1
* Replace the dependency on the
- _[test](https://pub.dartlang.org/packages/test)_ package with a dependency on
- the new _[test_api](https://pub.dartlang.org/packages/test_api)_ package.
+ _[test](https://pub.dev/packages/test)_ package with a dependency on
+ the new _[test_api](https://pub.dev/packages/test_api)_ package.
This dramatically reduces mockito's transitive dependencies.
* Internal improvements to tests and examples.
diff --git a/README.md b/README.md
index 32904aa..665da49 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
Mock library for Dart inspired by [Mockito](https://github.com/mockito/mockito).
-[![Pub](https://img.shields.io/pub/v/mockito.svg)](https://pub.dartlang.org/packages/mockito)
+[![Pub](https://img.shields.io/pub/v/mockito.svg)](https://pub.dev/packages/mockito)
[![Build Status](https://travis-ci.org/dart-lang/mockito.svg?branch=master)](https://travis-ci.org/dart-lang/mockito)
## Let's create mocks
diff --git a/example/iss/README.md b/example/iss/README.md
index 18039bc..9e0acde 100644
--- a/example/iss/README.md
+++ b/example/iss/README.md
@@ -1,7 +1,7 @@
# International Space Station (ISS) library
This library accesses the International Space Station's APIs
-(using [package:http](https://pub.dartlang.org/packages/http))
+(using [package:http](https://pub.dev/packages/http))
to fetch the space station's current location.
The unit tests for this library use package:mockito to generate
diff --git a/lib/src/mock.dart b/lib/src/mock.dart
index c58476e..9b2e3b1 100644
--- a/lib/src/mock.dart
+++ b/lib/src/mock.dart
@@ -118,7 +118,6 @@
dynamic noSuchMethod(Invocation invocation, [Object /*?*/ returnValue]) {
// noSuchMethod is that 'magic' that allows us to ignore implementing fields
// and methods and instead define them later at compile-time per instance.
- // See "Emulating Functions and Interactions" on dartlang.org: goo.gl/r3IQUH
invocation = _useMatchedInvocationIfSet(invocation);
if (_whenInProgress) {
_whenCall = _WhenCall(this, invocation);