From 6b072866d24a464e5a6d673c7ac27fc3d95b1cb6 Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Mon, 2 Mar 2020 16:20:52 +0100 Subject: [PATCH] Replace deprecated date creation (#69) --- src/test/java/io/getstream/core/utils/ActivityGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/getstream/core/utils/ActivityGenerator.java b/src/test/java/io/getstream/core/utils/ActivityGenerator.java index ae3e9255..dc880344 100644 --- a/src/test/java/io/getstream/core/utils/ActivityGenerator.java +++ b/src/test/java/io/getstream/core/utils/ActivityGenerator.java @@ -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 { private static final class FeedIDGenerator extends Generator { @@ -35,7 +36,7 @@ public FeedID generate(SourceOfRandomness r, GenerationStatus status) { private static final class DateGenerator extends Generator { 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);