-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add a test that reads the flat record node using all possible …
…types (#706)
- Loading branch information
1 parent
a4568a7
commit 6e7ee46
Showing
11 changed files
with
518 additions
and
28 deletions.
There are no files selected for viewing
423 changes: 411 additions & 12 deletions
423
...lix/hollow/core/write/objectmapper/flatrecords/traversal/FlatRecordTraversalNodeTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
hollow/src/test/java/com/netflix/hollow/test/dto/kitchensink/KitchenSink.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
package com.netflix.hollow.test.dto.kitchensink; | ||
|
||
|
||
import com.netflix.hollow.core.write.objectmapper.HollowHashKey; | ||
import com.netflix.hollow.core.write.objectmapper.HollowInline; | ||
import com.netflix.hollow.core.write.objectmapper.HollowPrimaryKey; | ||
import com.netflix.hollow.core.write.objectmapper.HollowTypeName; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
@HollowPrimaryKey(fields = {"intVal"}) | ||
public class KitchenSink { | ||
public int intVal; | ||
public long longVal; | ||
public float floatVal; | ||
public double doubleVal; | ||
public boolean booleanVal; | ||
public byte byteVal; | ||
public short shortVal; | ||
public char charVal; | ||
|
||
public Integer boxedIntVal; | ||
public Long boxedLongVal; | ||
public Float boxedFloatVal; | ||
public Double boxedDoubleVal; | ||
public Boolean boxedBooleanVal; | ||
public Byte boxedByteVal; | ||
public Short boxedShortVal; | ||
public Character boxedCharVal; | ||
public String stringVal; | ||
|
||
@HollowInline | ||
public Integer inlineIntVal; | ||
@HollowInline | ||
public Long inlineLongVal; | ||
@HollowInline | ||
public Float inlineFloatVal; | ||
@HollowInline | ||
public Double inlineDoubleVal; | ||
@HollowInline | ||
public Boolean inlineBooleanVal; | ||
@HollowInline | ||
public Byte inlineByteVal; | ||
@HollowInline | ||
public Short inlineShortVal; | ||
@HollowInline | ||
public Character inlineCharVal; | ||
@HollowInline | ||
public String inlineStringVal; | ||
|
||
public byte[] bytesVal; | ||
|
||
@HollowTypeName(name = "CustomType") | ||
public String customTypeVal; | ||
|
||
public SubType subType; | ||
|
||
public List<SubType> subTypeList; | ||
public Set<SubType> subTypeSet; | ||
|
||
public Map<MapKey, SubType> subTypeMap; | ||
public Map<ComplexMapKey, SubType> complexMapKeyMap; | ||
|
||
|
||
@HollowHashKey(fields = {"value1"}) | ||
public Set<HashableKey> hashableSet; | ||
@HollowHashKey(fields = {"value1"}) | ||
public Map<HashableKey, SubType> hashableMap; | ||
|
||
public static class SubType { | ||
public int intVal; | ||
public long longVal; | ||
public float floatVal; | ||
} | ||
|
||
public static class MapKey { | ||
public int value; | ||
} | ||
|
||
public static class ComplexMapKey { | ||
public int value1; | ||
public int value2; | ||
} | ||
|
||
public static class HashableKey { | ||
public int value1; | ||
public int value2; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...va/com/netflix/hollow/test/dto/Award.java → .../netflix/hollow/test/dto/movie/Award.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...m/netflix/hollow/test/dto/CastMember.java → ...lix/hollow/test/dto/movie/CastMember.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/netflix/hollow/test/dto/CastRole.java → ...tflix/hollow/test/dto/movie/CastRole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/netflix/hollow/test/dto/Country.java → ...etflix/hollow/test/dto/movie/Country.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tflix/hollow/test/dto/MaturityRating.java → ...hollow/test/dto/movie/MaturityRating.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/com/netflix/hollow/test/dto/Movie.java → .../netflix/hollow/test/dto/movie/Movie.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...java/com/netflix/hollow/test/dto/Tag.java → ...om/netflix/hollow/test/dto/movie/Tag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/netflix/hollow/test/dto/TagValue.java → ...tflix/hollow/test/dto/movie/TagValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters