below(KITKAT) .with( formats(JPEG) .expect(200, 25), formats(PNG, WEBP) .expect(199, 25))) .givenImageWithDimensionsOf(800, 100, atAndAbove(VERSION_CODES.N) .with( formats(JPEG, WEBP) .expect(100, 13), formats(PNG) .expect(100, 12)), apis(KITKAT, VERSION_CODES.M) .with( formats(JPEG) .expect(100, 13), formats(PNG, WEBP) .expect(100, 12)), below(KITKAT) formats(JPEG) .expect(101, 13), formats(PNG, WEBP) .expect(100, 12))) .givenImageWithDimensionsOf(100, 800, below(KITKAT)
atAndAbove(VERSION_CODES.N) .with( formats(JPEG, WEBP) .expect(100, 13), formats(PNG) .expect(99, 12)), below(VERSION_CODES.N) .with( formats(JPEG) .expect(100, 13), formats(PNG, WEBP) .expect(99, 12))) .givenImageWithDimensionsOf(800, 100, atAndAbove(VERSION_CODES.N) .with( formats(JPEG, WEBP) .expect(100, 13), formats(PNG) .expect(100, 12)), below(VERSION_CODES.N) .with( formats(JPEG) .expect(100, 13), formats(PNG, WEBP) .expect(100, 12))) .givenImageWithDimensionsOf(801, 100, onAllApisAndAllFormatsExpect(50, 6)) atAndAbove(VERSION_CODES.N) .with(
below(KITKAT) .with( formats(JPEG) .expect(200, 25), formats(PNG, WEBP) .expect(199, 25))) .givenImageWithDimensionsOf(800, 100, atAndAbove(VERSION_CODES.N) .with( formats(JPEG, WEBP) .expect(100, 13), formats(PNG) .expect(100, 12)), apis(KITKAT, VERSION_CODES.M) .with( formats(JPEG) .expect(100, 13), formats(PNG, WEBP) .expect(100, 12)), below(KITKAT) formats(JPEG) .expect(101, 13), formats(PNG, WEBP) .expect(100, 12))) .givenImageWithDimensionsOf(100, 800,
static Builder allFormats() { return formats(CompressFormat.values()); }