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

powermock/powermock

PowerMock is a Java framework that allows you to unit test code normally regarded as untestable. observed · 2026-08-28

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

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

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

  • gap_med: n/a
  • age_days: 4480
  • days_rel: n/a
  • days_push: 973
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

4170 stars · 572 forks observed · 2026-08-28

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

PowerMock is a Java framework that extends mocking libraries like EasyMock and Mockito to enable unit testing of code normally regarded as untestable. It uses a custom classloader and bytecode manipulation to mock static methods, constructors, final classes and methods, private methods, and static initializers.

Use cases

  • mock static methods in java unit tests
  • mock final classes and methods
  • suppress static initializer blocks in tests
  • test legacy code with private method mocking
  • extend mockito tests to untestable code
  • bypass encapsulation to access internal state in tests

When to choose

  • you need to unit test legacy Java code with static methods, final classes, or private methods
  • you already use Mockito or EasyMock and need more powerful mocking capabilities
  • you cannot refactor production code for testability

When to avoid

  • you are starting a new project and can design for testability with plain Mockito
  • your team includes junior developers, as PowerMock can encourage poor design
  • you need a actively developed tool with modern JDK support

Facets

framework · maturity maintenance

testing mocking testing developer-tools jvm java mockito easymock bytecode-manipulation unit-testing

1 source

Member repositories

RepositoryRoleHealth v2
powermock/powermockmain23

For agents

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

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