Sign in Go Pro

Dependency Injection in Android using Kodein

Testing your architecture (mock injection)

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



The last couple of lessons are about testing. Dependency Injection has a big side related to testing, so we want to leverage the power of it and of our decoupled architecture to write some end to end tests. On this lesson, we will learn:

  • How to write end to end back box tests decoupled from the implementation, so we can avoid refactors affecting our tests too much.
  • How to use our Kodein DI system to replace dependencies at any arbitrary level of depth on our architecture, thanks to Binding Overrides.


There are no comments on this lesson, start the conversation below ...


Lessons in Dependency Injection in Android using Kodein