Skip to content

Commit

Permalink
Updated "everything" test to use ZonedDateTime's parser instead of In…
Browse files Browse the repository at this point in the history
…stant's parser because of JDK 1.8
  • Loading branch information
jdereg committed Mar 30, 2024
1 parent b595202 commit 8c33de9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### Revision History
* 2.4.8-SNAPSHOT
* Using json-io 4.14.2 for cloning object in "test" scope, eliminates cycle depedencies
* 2.4.7
* All 687 conversions supported are now 100% cross-product tested. Converter test suite is complete.
* 2.4.6
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<version.junit-jupiter-api>5.10.2</version.junit-jupiter-api>
<version.junit-jupiter-params>5.10.2</version.junit-jupiter-params>
<version.assertj-core>3.25.3</version.assertj-core>
<version.json-io>4.19.11</version.json-io>
<version.json-io>4.14.2</version.json-io>
<version.mockito-junit-jupiter>4.11.0</version.mockito-junit-jupiter>
<version.agrona>1.21.1</version.agrona>

Expand Down
12 changes: 4 additions & 8 deletions src/test/java/com/cedarsoftware/util/TestGraphComparator.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
import java.util.TreeMap;
import java.util.TreeSet;

import com.cedarsoftware.io.JsonIo;
import com.cedarsoftware.io.ReadOptions;
import com.cedarsoftware.io.ReadOptionsBuilder;
import com.cedarsoftware.io.WriteOptions;
import com.cedarsoftware.io.WriteOptionsBuilder;
import com.cedarsoftware.util.io.JsonReader;
import com.cedarsoftware.util.io.JsonWriter;
import org.junit.jupiter.api.Test;

import static com.cedarsoftware.util.GraphComparator.Delta.Command.ARRAY_RESIZE;
Expand Down Expand Up @@ -2176,9 +2173,8 @@ private Dude getDude(String name, int age)

private Object clone(Object source) {

WriteOptions writeOptions = new WriteOptionsBuilder().showTypeInfoAlways().build();
ReadOptions readOptions = new ReadOptionsBuilder().build();
return JsonIo.deepCopy(source, readOptions, writeOptions);
String json = JsonWriter.objectToJson(source);
return JsonReader.jsonToJava(json);
}

private GraphComparator.ID getIdFetcher()
Expand Down

0 comments on commit 8c33de9

Please sign in to comment.