Skip to content

Commit

Permalink
Replace deprecated date creation (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored Mar 2, 2020
1 parent 6c11ae1 commit 6b07286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/io/getstream/core/utils/ActivityGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io.getstream.core.models.Activity;
import io.getstream.core.models.FeedID;
import java.util.Date;
import java.util.GregorianCalendar;

public class ActivityGenerator extends Generator<Activity> {
private static final class FeedIDGenerator extends Generator<FeedID> {
Expand All @@ -35,7 +36,7 @@ public FeedID generate(SourceOfRandomness r, GenerationStatus status) {

private static final class DateGenerator extends Generator<Date> {
private Date min = new Date(Integer.MIN_VALUE);
private Date max = new Date(8099, 0, 1);
private Date max = new GregorianCalendar(8099, 0, 1).getTime();

public DateGenerator() {
super(Date.class);
Expand Down

0 comments on commit 6b07286

Please sign in to comment.