Ross ROSS = Recommend OSS · open-source software intelligence for agents

fabioCollini/DaggerMock

A JUnit rule to easily override Dagger 2 objects observed · 2026-08-28

github.com/fabioCollini/DaggerMock · Java · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3902
  • days_rel: n/a
  • days_push: 1309
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1153 stars · 87 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

DaggerMock is a JUnit rule that makes it easy to override Dagger 2 provided objects with Mockito mocks in Java or Kotlin tests. It scans @Mock-annotated test fields and substitutes them into the Dagger component, avoiding the need for custom TestModules and TestComponents.

Use cases

  • override dagger 2 dependencies in junit tests
  • mock objects injected by dagger in android tests
  • unit test android services using mockito and dagger
  • replace dagger module providers with mocks without test modules
  • write espresso tests with mocked dependencies

When to choose

  • you use Dagger 2 with JUnit and want simple mock overrides
  • you want to avoid boilerplate TestModule/TestComponent setup in tests
  • you write Android tests in Java or Kotlin with Mockito

When to avoid

  • you use Hilt or Koin instead of Dagger 2
  • you need a maintained solution - the project is in maintenance mode
  • you need to mock static or null fields, which are unsupported

Facets

library · maturity maintenance

testing mocking testing android-tools developer-tools jvm dagger2 junit-rule mockito espresso dependency-injection-testing android

1 source

Member repositories

RepositoryRoleHealth v2
fabioCollini/DaggerMockmain32

For agents

markdown · JSON · MCP: product_card(name="fabioCollini/DaggerMock")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem