Skip to content

Commit

Permalink
8266527: RandomTestCoverage.java failing due to API removal
Browse files Browse the repository at this point in the history
Reviewed-by: rriggs
  • Loading branch information
JimLaskey committed May 4, 2021
1 parent c53dee7 commit f00b70e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions test/jdk/java/util/Random/RandomTestCoverage.java
Expand Up @@ -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());
Expand Down

1 comment on commit f00b70e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.