# square/assertj-android

A set of AssertJ helpers geared toward testing Android.

Repository: https://github.com/square/assertj-android
Canonical: https://ross.abutalabs.com/products/assertj-android
Homepage: https://square.github.io/assertj-android/
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2018-03-05T20:29:14+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4976, "days_push": 3103, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1560, forks 153 (observed 2026-08-28T04:05:03.743472+00:00)

## What it is
AssertJ Android is a set of AssertJ assertion helpers for testing Android applications, offering fluent, chainable assertions on Android classes like views, fragments, and menu items with readable failure messages. It is officially deprecated in favor of Google's Truth library.

## Use cases
- write fluent assertions for android views in unit tests
- assert view visibility and layout properties in tests
- test android fragments and menu items with readable failure messages
- chain multiple assertions on android ui objects
- improve test failure output compared to plain junit assertions

## When to choose
- maintaining a legacy Android project already using AssertJ
- you prefer AssertJ-style chained assertions on Android objects

## When to avoid
- starting a new Android project (use Google Truth instead)
- you need assertions for current AndroidX or Play Services APIs
- you want an actively maintained testing library

## Facets
- artifact type: library
- maturity: abandoned
- function: testing
- domain: testing, mobile-development, developer-tools
- platform: jvm
- tags: assertj, android-testing, assertions, unit-testing, deprecated, junit, android

## Member repositories
- square/assertj-android (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.743472+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:48.009988+00:00, confidence not recorded.
  - readme: https://github.com/square/assertj-android (fetched 2026-08-28T04:05:03.743472+00:00, sha f86eee607ece)
  - homepage: https://square.github.io/assertj-android/ (fetched 2026-08-29T11:29:26.348127+00:00, sha a5dc4aa2ac6c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
