这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ashleyfrieze
Copy link
Contributor

No description provided.

Copy link
Collaborator

@KevinGilmore KevinGilmore left a 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

Comment on lines 31 to 32
context.getLogger().log("Environment: " +
environmentName + "\n");
Copy link
Collaborator

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

Comment on lines 37 to 38
.getOldestToDo()
.ifPresent(postService::makePost);
Copy link
Collaborator

Choose a reason for hiding this comment

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

indentation - two spaces

Comment on lines 34 to 38
return "PostItem{" +
"title='" + title + '\'' +
", body='" + body + '\'' +
", userId=" + userId +
'}';
Copy link
Collaborator

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

Comment on lines 44 to 48
"userId=" + userId +
", id=" + id +
", title='" + title + '\'' +
", completed=" + completed +
'}';
Copy link
Collaborator

Choose a reason for hiding this comment

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

move trailing + operators down

Comment on lines 21 to 25
.decoder(new GsonDecoder())
.logger(new Slf4jLogger())
.logLevel(FULL)
.requestInterceptor(new BasicAuthRequestInterceptor(config.getToDoCredentials().getUsername(), config.getToDoCredentials().getPassword()))
.target(ToDoApi.class, config.getToDoEndpoint());
Copy link
Collaborator

Choose a reason for hiding this comment

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

indent only two spaces

Comment on lines 28 to 32
.encoder(new GsonEncoder())
.logger(new Slf4jLogger())
.logLevel(FULL)
.requestInterceptor(new BasicAuthRequestInterceptor(config.getPostCredentials().getUsername(), config.getPostCredentials().getPassword()))
.target(PostApi.class, config.getPostEndpoint());
Copy link
Collaborator

Choose a reason for hiding this comment

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

indent only two spaces

Comment on lines 27 to 28
.filter(item -> !item.isCompleted())
.findFirst();
Copy link
Collaborator

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");
Copy link
Collaborator

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");
Copy link
Collaborator

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");
Copy link
Collaborator

Choose a reason for hiding this comment

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

indentation

@ashleyfrieze ashleyfrieze force-pushed the BAEL-4967-enterprise-lambda branch from f6c58b7 to 496a895 Compare May 31, 2021 06:39
@eric-martin eric-martin merged commit 7fc266b into eugenp:master May 31, 2021
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