Clone this repo:
  1. 96cef88 Add license type: Apache2 is a NOTICE license am: 3a90a1411f by Bob Badour · 4 months ago master android-r-beta-2 android-r-beta-3
  2. 3a90a14 Add license type: Apache2 is a NOTICE license by Bob Badour · 4 months ago
  3. ed4bc1e [automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master by Xin Li · 1 year, 6 months ago android10-c2f2-release android10-c2f2-s1-release android10-c2f2-s2-release android10-dev android10-mainline-media-release android10-mainline-networking-release android10-mainline-resolv-release android10-mainline-tzdata-release android10-qpr1-b-release android10-qpr1-b-s1-release android10-qpr1-c-release android10-qpr1-c-s1-release android10-qpr1-d-release android10-qpr1-mainline-release android10-qpr1-release android10-qpr2-release android10-qpr2-s1-release android10-qpr2-s2-release android10-qpr2-s3-release android10-qpr2-s4-release android10-qpr3-release android10-qpr3-s1-release ndk-sysroot-r21 android-10.0.0_r12 android-10.0.0_r13 android-10.0.0_r14 android-10.0.0_r15 android-10.0.0_r16 android-10.0.0_r18 android-10.0.0_r19 android-10.0.0_r20 android-10.0.0_r21 android-10.0.0_r22 android-10.0.0_r23 android-10.0.0_r24 android-10.0.0_r25 android-10.0.0_r26 android-10.0.0_r27 android-10.0.0_r28 android-10.0.0_r29 android-10.0.0_r30 android-10.0.0_r31 android-10.0.0_r32 android-10.0.0_r33 android-10.0.0_r34 android-10.0.0_r35 android-10.0.0_r36 android-10.0.0_r37 android-10.0.0_r38 android-10.0.0_r39 android-10.0.0_r40 android-10.0.0_r41 android-10.0.0_r7 android-10.0.0_r8 android-10.0.0_r9 android-mainline-10.0.0_r10 android-mainline-10.0.0_r11 android-mainline-10.0.0_r4 android-mainline-10.0.0_r5 android-mainline-10.0.0_r6 android-mainline-10.0.0_r7 android-mainline-10.0.0_r8 android-mainline-10.0.0_r9 android-r-preview-1 android-r-preview-2 android-r-preview-3 android-r-preview-4
  4. 9e2e144 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master by Xin Li · 1 year, 6 months ago android-o-mr1-iot-release-1.0.13 android-o-mr1-iot-release-1.0.14
  5. 90f1e57 Add default code reviewers into OWNERS am: 9455ffae9d am: 4f3e711b44 by Chih-Hung Hsieh · 1 year, 7 months ago


Build Status Coverage Status Maven Central

Parameterised tests that don't suck


public class PersonTest {

  @Parameters({"17, false", 
               "22, true" })
  public void personIsAdult(int age, boolean valid) throws Exception {
    assertThat(new Person(age).isAdult(), is(valid));

See more examples

Latest News


JUnitParams project adds a new runner to JUnit and provides much easier and readable parametrised tests for JUnit >=4.6.

Main differences to standard JUnit Parametrised runner:

  • more explicit - params are in test method params, not class fields
  • less code - you don't need a constructor to set up parameters
  • you can mix parametrised with non-parametrised methods in one class
  • params can be passed as a CSV string or from a parameters provider class
  • parameters provider class can have as many parameters providing methods as you want, so that you can group different cases
  • you can have a test method that provides parameters (no external classes or statics anymore)
  • you can see actual parameter values in your IDE (in JUnit‘s Parametrised it’s only consecutive numbers of parameters):


JUnitParams is available as Maven artifact:


If you want to see just one simple test class with all main ways to use JUnitParams see here:

You can also have a look at Wiki:Quickstart

Note: We are currently moving the project from Google Code to Github. Some information may still be accessible only at