Skip to content

Commit cde9cab

Browse files
committed
fix(test): use java.time.Instant instead of Joda-Time per code review
1 parent 552f572 commit cde9cab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/IngestionPipelineOwnerInheritanceIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import static org.junit.jupiter.api.Assertions.assertThrows;
66
import static org.junit.jupiter.api.Assertions.assertTrue;
77

8+
import java.time.Instant;
89
import java.util.Date;
910
import java.util.List;
1011
import java.util.Map;
1112
import java.util.UUID;
12-
import org.joda.time.DateTime;
1313
import org.junit.jupiter.api.Test;
1414
import org.junit.jupiter.api.extension.ExtendWith;
1515
import org.junit.jupiter.api.parallel.Execution;
@@ -54,7 +54,7 @@
5454
@ExtendWith(TestNamespaceExtension.class)
5555
public class IngestionPipelineOwnerInheritanceIT {
5656

57-
private static final Date START_DATE = new DateTime("2022-06-10T15:06:47+00:00").toDate();
57+
private static final Date START_DATE = Date.from(Instant.parse("2022-06-10T15:06:47Z"));
5858

5959
@Test
6060
void test_inheritedOwners_fromService(TestNamespace ns) {

0 commit comments

Comments
 (0)