Commit 6fa57531 authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

Merge branch 'malowe/dev/442' into 'dev'

Fix broken test that still used instead of Java 8 datetime

See merge request !465
parents da6746a5 0a3b3ec5
Pipeline #1753 passed with stage
in 0 seconds
package org.eclipsefoundation.react.test.helper;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.Random;
......@@ -108,8 +107,7 @@ public class DtoHelper {
wg.setWorkingGroupID(RandomStringUtils.randomAlphabetic(4, 10));
wg.setParticipationLevel(RandomStringUtils.randomAlphabetic(4, 10));
// get a random instance of time
Instant inst =, ChronoUnit.SECONDS);
wg.setEffectiveDate(new Date(inst.getEpochSecond()));
wg.setEffectiveDate(, ChronoUnit.SECONDS));
wg.setContact(generateContact(form, Optional.empty()));
return wg;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment