-
Notifications
You must be signed in to change notification settings - Fork 54k
BAEL-4967-Enterprise AWS Lambda Features #10799
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
BAEL-4967-Enterprise AWS Lambda Features #10799
Conversation
KevinGilmore
left a comment
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.
See notes about indentation and placement of + operators
| context.getLogger().log("Environment: " + | ||
| environmentName + "\n"); |
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.
bring the + operator down to the next line and indent only two spaces
| .getOldestToDo() | ||
| .ifPresent(postService::makePost); |
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 - two spaces
| return "PostItem{" + | ||
| "title='" + title + '\'' + | ||
| ", body='" + body + '\'' + | ||
| ", userId=" + userId + | ||
| '}'; |
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.
move the + operators at line end to the next line
| "userId=" + userId + | ||
| ", id=" + id + | ||
| ", title='" + title + '\'' + | ||
| ", completed=" + completed + | ||
| '}'; |
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.
move trailing + operators down
| .decoder(new GsonDecoder()) | ||
| .logger(new Slf4jLogger()) | ||
| .logLevel(FULL) | ||
| .requestInterceptor(new BasicAuthRequestInterceptor(config.getToDoCredentials().getUsername(), config.getToDoCredentials().getPassword())) | ||
| .target(ToDoApi.class, config.getToDoEndpoint()); |
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.
indent only two spaces
| .encoder(new GsonEncoder()) | ||
| .logger(new Slf4jLogger()) | ||
| .logLevel(FULL) | ||
| .requestInterceptor(new BasicAuthRequestInterceptor(config.getPostCredentials().getUsername(), config.getPostCredentials().getPassword())) | ||
| .target(PostApi.class, config.getPostEndpoint()); |
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.
indent only two spaces
| .filter(item -> !item.isCompleted()) | ||
| .findFirst(); |
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.
indent two spaces
| new App().handleRequest(fakeInputStream, fakeOutputStream, mockContext); | ||
|
|
||
| verify(mockContext.getLogger()) | ||
| .log("Environment: unitTest\n"); |
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
| @Test | ||
| public void givenEnvironmentVariableIsNotSet_thenUseDefault() { | ||
| String setting = Optional.ofNullable(System.getenv("SETTING")) | ||
| .orElse("default"); |
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
| ToDoReaderService service = new ToDoReaderService(config, null); | ||
|
|
||
| assertThat(systemOutRule.getLinesNormalized()) | ||
| .contains("ToDo Endpoint on: https://todo-endpoint.com"); |
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
f6c58b7 to
496a895
Compare
No description provided.