Skip to content

Upgrading mockito 1 to 2

Breaking1.0.1 → 2.2.3Platform1New1Changed11Fixed1Other2

BreakingUpgrade verdict

A platform requirement change.

  • Allows the package to be used with early Dart 2.0 development builds.
1 item needs code or config changes

Dart SDK requirement changed in 2.2.3: >=1.0.0 <2.0.0 → >=2.0.0-dev.16.0 <2.0.0.

Platform1
Bumps the SDK version ceiling to <2.0.0-dev.infinity to support Dart 2.0 development testing.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • added: class Mock
  • added: class PostExpectation
  • added: class VerificationResult
  • added: ctor VerificationResult(this.callCount)
  • added: field VerificationResult.callCount: int
  • added: field VerificationResult.captured: List
  • added: function argThat(Matcher matcher)
  • added: function captureThat(Matcher matcher)
  • added: function clearInteractions(var mock): void
  • added: function logInvocations(List<Mock> mocks): void
  • added: function named(var mock, {String name, int hashCode})
  • added: function reset(var mock): void
  • added: function resetMockitoState(): void
  • added: function spy<E>(Mock mock, E spyOn): E
  • added: function throwOnMissingStub(Mock mock): void
  • added: function typed<T>(ArgMatcher matcher, {String named}): T
  • added: function verifyNoMoreInteractions(var mock): void
  • added: function verifyZeroInteractions(var mock): void
  • added: get Mock.hashCode: int
  • added: get any
  • added: get captureAny
  • added: get untilCalled: InvocationLoader
  • added: get verify: Verification
  • added: get verifyInOrder: _InOrderVerification
  • added: get verifyNever: Verification
  • added: get when: Expectation
  • added: method Mock.noSuchMethod(Invocation invocation)
  • added: method Mock.operator ==(other): bool
  • added: method Mock.toString(): String
  • added: method PostExpectation.thenAnswer(Answering answer)
  • added: method PostExpectation.thenReturn(expected)
  • added: method PostExpectation.thenThrow(throwable)
  • added: method VerificationResult.called(matcher): void
  • added: typedef Expectation = PostExpectation Function<T>(T x)
  • added: typedef Verification = VerificationResult Function<T>(T matchingInvocations)
  • added: typedef dynamic Answering(Invocation realInvocation)
  • removed: class CannedResponse
  • removed: class InvocationMatcher
  • removed: class RealCall
  • removed: ctor CannedResponse(this.matcher, this.response)
  • removed: ctor InvocationMatcher(this.roleInvocation)
  • removed: ctor RealCall(this.mock, this.invocation)
  • removed: field CannedResponse.matcher: InvocationMatcher
  • removed: field CannedResponse.response: Answering
  • removed: field InvocationMatcher.roleInvocation: final Invocation
  • removed: field RealCall.invocation: final Invocation
  • removed: field RealCall.mock: final Mock
  • removed: field RealCall.verified: bool
  • removed: function spy(dynamic mock, dynamic spiedObject): dynamic
  • removed: get RealCall.timeStamp: DateTime
  • removed: method InvocationMatcher.isMatchingArg(roleArg, actArg): bool
  • removed: method InvocationMatcher.matches(Invocation invocation): bool
  • removed: method RealCall.toString(): String
  • removed: typedef PostExpectation Expectation(x)
  • removed: typedef VerificationResult Verification(matchingInvocations)
  • removed: typedef void InOrderVerification(recordedInvocations)
  • changed: function typed(_ArgMatcher matcher, {String named}) → function typed<T>(ArgMatcher matcher, {String named}): T
  • changed: get verifyInOrder: InOrderVerification → get verifyInOrder: _InOrderVerification
  • changed: method Mock.noSuchMethod(Invocation invocation): dynamic → method Mock.noSuchMethod(Invocation invocation)
  • added: function throwOnMissingStub(Mock mock): void
  • added: get untilCalled: InvocationLoader
  • added: typedef Expectation = PostExpectation Function<T>(T x)
  • added: typedef Verification = VerificationResult Function<T>(T matchingInvocations)
  • removed: class CannedResponse
  • removed: class InvocationMatcher
  • removed: class Mock
  • removed: class PostExpectation
  • removed: class RealCall
  • removed: class VerificationResult
  • removed: ctor CannedResponse(this.matcher, this.response)
  • removed: ctor InvocationMatcher(this.roleInvocation)
  • removed: ctor RealCall(this.mock, this.invocation)
  • removed: ctor VerificationResult(this.callCount)
  • removed: field CannedResponse.matcher: InvocationMatcher
  • removed: field CannedResponse.response: Answering
  • removed: field InvocationMatcher.roleInvocation: final Invocation
  • removed: field RealCall.invocation: final Invocation
  • removed: field RealCall.mock: final Mock
  • removed: field RealCall.verified: bool
  • removed: field VerificationResult.callCount: int
  • removed: field VerificationResult.captured: List
  • removed: function argThat(Matcher matcher)
  • removed: function captureThat(Matcher matcher)
  • removed: function clearInteractions(var mock): void
  • removed: function logInvocations(List<Mock> mocks): void
  • removed: function named(var mock, {String name, int hashCode})
  • removed: function reset(var mock): void
  • removed: function resetMockitoState(): void
  • removed: function typed(_ArgMatcher matcher, {String named})
  • removed: function verifyNoMoreInteractions(var mock): void
  • removed: function verifyZeroInteractions(var mock): void
  • removed: get Mock.hashCode: int
  • removed: get RealCall.timeStamp: DateTime
  • removed: get any
  • removed: get captureAny
  • removed: get verify: Verification
  • removed: get verifyInOrder: InOrderVerification
  • removed: get verifyNever: Verification
  • removed: get when: Expectation
  • removed: method InvocationMatcher.isMatchingArg(roleArg, actArg): bool
  • removed: method InvocationMatcher.matches(Invocation invocation): bool
  • removed: method Mock.noSuchMethod(Invocation invocation): dynamic
  • removed: method Mock.operator ==(other): bool
  • removed: method Mock.toString(): String
  • removed: method PostExpectation.thenAnswer(Answering answer)
  • removed: method PostExpectation.thenReturn(expected)
  • removed: method PostExpectation.thenThrow(throwable)
  • removed: method RealCall.toString(): String
  • removed: method VerificationResult.called(matcher): void
  • removed: typedef PostExpectation Expectation(x)
  • removed: typedef VerificationResult Verification(matchingInvocations)
  • removed: typedef dynamic Answering(Invocation realInvocation)
  • removed: typedef void InOrderVerification(recordedInvocations)