Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add getters/setters to all Resultset classes and dependencies - issue… #92

Open
wants to merge 3 commits into
base: StatisticsImpl_jackson
Choose a base branch
from

Conversation

pierrelambert
Copy link

#89

Added getters and setters / Switch some methods from private to public

@gkorland gkorland linked an issue Nov 8, 2020 that may be closed by this pull request
@DvirDukhan
Copy link
Contributor

@pierrelambert
Does this solve the serialization issue?
Can you add a test?

Comment on lines +1109 to +1110
// Assert.assertTrue((mapper.canSerialize(Statistics.class)));
// Assert.assertTrue((mapper.canSerialize(Record.class)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove those

Comment on lines +1100 to +1108
Assert.assertTrue((mapper.canSerialize(StatisticsImpl.class)));
Assert.assertTrue((mapper.canSerialize(RecordImpl.class)));
Assert.assertTrue((mapper.canSerialize(GraphEntity.class)));
Assert.assertTrue((mapper.canSerialize(ResultSetImpl.class)));
Assert.assertTrue((mapper.canSerialize(Property.class)));
Assert.assertTrue((mapper.canSerialize(Node.class)));
Assert.assertTrue((mapper.canSerialize(Edge.class)));
Assert.assertTrue((mapper.canSerialize(Path.class)));
Assert.assertTrue((mapper.canSerialize(ResultSet.class)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align indentations, please


Assert.assertEquals(Arrays.asList("a", "r", "a.name", "a.age", "a.doubleValue", "a.boolValue", "a.nullValue",
"r.place", "r.since", "r.doubleValue", "r.boolValue", "r.nullValue"), resultSet.getResults().get(0).keys());
//Serialization tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a scenario of serialization and deserialization?
resultsSet->JSON->resultSet
compare the original resultSet to the generated resultSet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResultSet should be serializable
2 participants