-
Notifications
You must be signed in to change notification settings - Fork 0
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
Choice fix #5
base: master
Are you sure you want to change the base?
Choice fix #5
Conversation
*/ | ||
@Override | ||
public List<PropertyName> findPropertyAliases(Annotated a) { | ||
if (a.hasAnnotation(XmlElements.class) || a.hasAnnotation(XmlElementRefs.class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to wrap this two condition blocks into one if (a.hasAnnotation(XmlElement.class)) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
readResourceFileAsJsonArray("choicesElements.json").stream().map(JsonValue::asJsonObject).forEach(o -> { | ||
System.out.println(o); | ||
Object result = this.wrapAndTest(handler, o, weatherDescription, clazz); | ||
Assertions.assertNotNull(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert not null
for so complicated task?
readResourceFileAsJsonArray("choicesRefs.json").stream().map(JsonValue::asJsonObject).forEach(o -> { | ||
System.out.println(o); | ||
Object result = this.wrapAndTest(handler, o, weatherDescription, clazz); | ||
Assertions.assertNotNull(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert not null
for so complicated task?
https://app.zenhub.com/workspaces/ps-development-59bbb52d21e82e515786af83/issues/elasticio/projects/247