Skip to content
Permalink
Browse files
8266527: RandomTestCoverage.java failing due to API removal
Reviewed-by: rriggs
  • Loading branch information
JimLaskey committed May 4, 2021
1 parent c53dee7 commit f00b70e2caaa9c2bb49bb9eae49a29ffbbf87af8
Showing with 15 additions and 10 deletions.
  1. +15 −10 test/jdk/java/util/Random/RandomTestCoverage.java
@@ -187,25 +187,30 @@ public static void main(String[] args) throws Throwable {
coverFactory(factory);
coverOf(factory.name());
});
RandomGeneratorFactory.all(StreamableGenerator.class)
RandomGeneratorFactory.all()
.filter(f -> f.isStreamable())
.forEach(factory -> {
coverStreamable(factory.create());
coverStreamable((StreamableGenerator)factory.create());
});
RandomGeneratorFactory.all(SplittableGenerator.class)
RandomGeneratorFactory.all()
.filter(f -> f.isSplittable())
.forEach(factory -> {
coverSplittable(factory.create());
coverSplittable((SplittableGenerator)factory.create());
});
RandomGeneratorFactory.all(JumpableGenerator.class)
RandomGeneratorFactory.all()
.filter(f -> f.isJumpable())
.forEach(factory -> {
coverJumpable(factory.create());
coverJumpable((JumpableGenerator)factory.create());
});
RandomGeneratorFactory.all(LeapableGenerator.class)
RandomGeneratorFactory.all()
.filter(f -> f.isLeapable())
.forEach(factory -> {
coverLeapable(factory.create());
coverLeapable((LeapableGenerator)factory.create());
});
RandomGeneratorFactory.all(ArbitrarilyJumpableGenerator.class)
RandomGeneratorFactory.all()
.filter(f -> f.isArbitrarilyJumpable())
.forEach(factory -> {
coverArbitrarilyJumpable(factory.create());
coverArbitrarilyJumpable((ArbitrarilyJumpableGenerator)factory.create());
});

coverRandomGenerator(new SecureRandom());

0 comments on commit f00b70e

Please sign in to comment.