Testing the 'Outer Circles': Integration vs Unit.

Updated Apr 28, 2026

Short answer

Inner circles use Unit Tests; outer circles (Adapters) require Integration Tests with real dependencies.

Deep explanation

Entities and Use Cases are tested with mocks (Unit). However, you must verify that your SQL Repository actually works with a real database. These are 'Interface Tests'. You test the implementation against the interface contract to ensure the 'Adapter' behaves as the 'Port' expects.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Clean Architecture interview questions

View all →