-
Notifications
You must be signed in to change notification settings - Fork 8
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
GET_FIELD_TESTS #1
Conversation
Additionally, implementation of new methods in XI5250Field.class were needed.
|
||
private List<TestField> buildExpectedFields() { | ||
List<TestField> testFieldList = new ArrayList<>(); | ||
testFieldList.add((new TestField(new TestField.FieldBuilder(FIELD_STRING_OUTPUT).withAttr(36).withDefaultColumn().withRow(5)))); |
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.
in general the builder pattern should look more like new TestField.FieldBuilder()......build()
and not as a new inside another. Please implement build method on builder and use that instead to make code a little shorter, better encapsulated, and mor obvious. Additionally, I think you have an unnecessary pair of parenthesis in this expression.
return this; | ||
} | ||
|
||
FieldBuilder withAttr(int val) { |
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.
indentation doesn't look consisten, please re format the entire file to avoid such issues.
|
||
} | ||
@Override | ||
public String toString() { |
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.
missing spacing between methods
", text='" + text + '\'' + | ||
'}'; | ||
} | ||
@Override |
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.
missing spacing between methods
|
||
|
||
} | ||
private static class ExceptionWaiter implements ExceptionHandler { |
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.
missing spacing between classes
|
||
|
||
|
||
|
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.
too many white lines
Additionally, add missing java doc to TerminalClient.getFields method.
No description provided.