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

GET_FIELD_TESTS #1

Merged
merged 2 commits into from
Apr 24, 2019
Merged

GET_FIELD_TESTS #1

merged 2 commits into from
Apr 24, 2019

Conversation

Baraujo25
Copy link
Contributor

No description provided.

Additionally, implementation of new methods in XI5250Field.class were needed.
pom.xml Outdated Show resolved Hide resolved
src/test/java/net/infordata/em/TerminalClientTest.java Outdated Show resolved Hide resolved
src/test/java/net/infordata/em/TerminalClientTest.java Outdated Show resolved Hide resolved
src/test/java/net/infordata/em/TerminalClientTest.java Outdated Show resolved Hide resolved

private List<TestField> buildExpectedFields() {
List<TestField> testFieldList = new ArrayList<>();
testFieldList.add((new TestField(new TestField.FieldBuilder(FIELD_STRING_OUTPUT).withAttr(36).withDefaultColumn().withRow(5))));

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) {

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() {

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

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 {

Choose a reason for hiding this comment

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

missing spacing between classes





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.
@rabelenda rabelenda merged commit 0a96066 into master Apr 24, 2019
@rabelenda rabelenda deleted the GET_FIELD_TESTS branch April 24, 2019 16:36
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.

3 participants