Software Engineering KB

Home

❯

06 Development Process

❯

01 Testing

❯

01 Concept

❯

Mocks

Mocks

Feb 10, 20261 min read

  • testing
  • mocks

Mocks

← Back to Test Doubles

Verify interactions — that specific methods were called with specific arguments. Mocks set expectations before the test runs and verify them afterward. Overuse can lead to brittle tests coupled to implementation details.

Key Properties

  • Interaction Verification
  • Expectation Setting
  • Brittleness Risk

Related

  • Stubs (return values, no verification)
  • Spies (record without changing behavior)

testing mocks


Graph View

  • Mocks
  • Key Properties
  • Related

Backlinks

  • Test Doubles
  • Spies
  • Stubs
  • Test Maintenance
  • Interaction Verification

Created with Quartz v4.5.2 © 2026

  • GitHub