Skip to content

Commit 6e1c20a

Browse files
Fixed lazy tests
1 parent 7289cf7 commit 6e1c20a

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

  • spring-data-eclipse-store/src

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/SupportedChecker.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
import java.util.List;
2121
import java.util.WeakHashMap;
2222

23+
import org.eclipse.serializer.collections.lazy.LazyArrayList;
24+
import org.eclipse.serializer.collections.lazy.LazyHashMap;
25+
import org.eclipse.serializer.collections.lazy.LazyHashSet;
2326
import org.eclipse.serializer.reference.Lazy;
2427

2528

@@ -51,7 +54,10 @@ class Implementation implements SupportedChecker
5154
Calendar.class,
5255
WeakHashMap.class,
5356
// Here EclipseStore has problems too: https://github.com/microstream-one/microstream/issues/204
54-
EnumMap.class
57+
EnumMap.class,
58+
LazyHashMap.class,
59+
LazyArrayList.class,
60+
LazyHashSet.class
5561
);
5662

5763
@Override

spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/special/types/LazyDaoObject.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public boolean equals(final Object o)
3939
return false;
4040
}
4141
final ComplexObject<Lazy<String>> that = (ComplexObject<Lazy<String>>)o;
42-
return Objects.equals(this.getId(), that.getId()) && Objects.equals(
42+
return Objects.equals(this.getId(), that.getId()) &&
43+
(this.getValue() == null && that.getValue() == null) ||
44+
Objects.equals(
4345
this.getValue().get(),
4446
that.getValue().get());
4547
}

0 commit comments

Comments
 (0)