Skip to content

Upgrading mockito 0.11 to 1

Safe0.11.0 → 1.0.1New2Other2

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

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

  • added: function resetMockitoState(): void
  • added: function typed(_ArgMatcher matcher, {String named})
  • added: method PostExpectation.thenThrow(throwable)
  • added: class CannedResponse
  • added: class InvocationMatcher
  • added: class Mock
  • added: class PostExpectation
  • added: class RealCall
  • added: class VerificationResult
  • added: ctor CannedResponse(this.matcher, this.response)
  • added: ctor InvocationMatcher(this.roleInvocation)
  • added: ctor RealCall(this.mock, this.invocation)
  • added: ctor VerificationResult(this.callCount)
  • added: field CannedResponse.matcher: InvocationMatcher
  • added: field CannedResponse.response: Answering
  • added: field InvocationMatcher.roleInvocation: final Invocation
  • added: field RealCall.invocation: final Invocation
  • added: field RealCall.mock: final Mock
  • added: field RealCall.verified: bool
  • 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 typed(_ArgMatcher matcher, {String named})
  • added: function verifyNoMoreInteractions(var mock): void
  • added: function verifyZeroInteractions(var mock): void
  • added: get Mock.hashCode: int
  • added: get RealCall.timeStamp: DateTime
  • added: get any
  • added: get captureAny
  • added: get verify: Verification
  • added: get verifyInOrder: InOrderVerification
  • added: get verifyNever: Verification
  • added: get when: Expectation
  • added: method InvocationMatcher.isMatchingArg(roleArg, actArg): bool
  • added: method InvocationMatcher.matches(Invocation invocation): bool
  • added: method Mock.noSuchMethod(Invocation invocation): dynamic
  • 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 RealCall.toString(): String
  • added: method VerificationResult.called(matcher): void
  • added: typedef PostExpectation Expectation(x)
  • added: typedef VerificationResult Verification(matchingInvocations)
  • added: typedef dynamic Answering(Invocation realInvocation)
  • added: typedef void InOrderVerification(recordedInvocations)