-
Notifications
You must be signed in to change notification settings - Fork 94
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
Excavator: Format Java files #1285
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6031bfd
Excavator: Format Java files
svc-excavator-bot 36e4377
changes with 0.3.1
dansanduleac a684e6b
Delete 999_palantir.txt
dansanduleac cf4139c
0.3.2
dansanduleac 915552d
Merge remote-tracking branch 'origin/roomba/format' into roomba/format
dansanduleac b5d6f00
changes after using https://github.com/palantir/palantir-java-format/…
dansanduleac 5b46716
0.3.4
dansanduleac c1e7a8e
fix up ImmutableMap.of
dansanduleac 4c5bb50
Merge remote-tracking branch 'origin/develop' into roomba/format
dansanduleac eaf101b
extra formatting
dansanduleac 045aaad
Merge remote-tracking branch 'origin/develop' into roomba/format
dansanduleac 56e666a
Reformat
dansanduleac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,8 @@ public void testFromParameters_fillsInDefaults() { | |
ClientConfiguration actual = ClientConfigurations.of(uris, sslFactory, trustManager); | ||
|
||
assertThat(actual.sslSocketFactory()).isInstanceOf(KeepAliveSslSocketFactory.class); | ||
assertThat(((KeepAliveSslSocketFactory) actual.sslSocketFactory()).getDelegate()).isEqualTo(sslFactory); | ||
assertThat(((KeepAliveSslSocketFactory) actual.sslSocketFactory()).getDelegate()) | ||
.isEqualTo(sslFactory); | ||
assertThat(actual.trustManager()).isEqualTo(trustManager); | ||
assertThat(actual.uris()).isEqualTo(uris); | ||
assertThat(actual.connectTimeout()).isEqualTo(Duration.ofSeconds(10)); | ||
|
@@ -89,8 +90,7 @@ public void testTimeoutMustBeMilliseconds() { | |
.security(SslConfiguration.of(Paths.get("src/test/resources/trustStore.jks"))) | ||
.connectTimeout(Duration.ofNanos(5)) | ||
.build(); | ||
Assertions | ||
.assertThatLoggableExceptionThrownBy(() -> ClientConfigurations.of(serviceConfig)) | ||
Assertions.assertThatLoggableExceptionThrownBy(() -> ClientConfigurations.of(serviceConfig)) | ||
.hasLogMessage("Timeouts with sub-millisecond precision are not supported"); | ||
} | ||
|
||
|
@@ -121,13 +121,12 @@ public void roundRobin_noCooldown() throws Exception { | |
.build(); | ||
|
||
assertThatThrownBy(() -> ClientConfiguration.builder() | ||
.from( | ||
ClientConfigurations.of(serviceConfig)) | ||
.nodeSelectionStrategy(NodeSelectionStrategy.ROUND_ROBIN) | ||
.failedUrlCooldown(Duration.ofMillis(0)) | ||
.build()) | ||
.isInstanceOf(IllegalArgumentException.class) | ||
.hasMessage("If nodeSelectionStrategy is ROUND_ROBIN then failedUrlCooldown must be positive"); | ||
.from(ClientConfigurations.of(serviceConfig)) | ||
.nodeSelectionStrategy(NodeSelectionStrategy.ROUND_ROBIN) | ||
.failedUrlCooldown(Duration.ofMillis(0)) | ||
.build()) | ||
.isInstanceOf(IllegalArgumentException.class) | ||
.hasMessage("If nodeSelectionStrategy is ROUND_ROBIN then failedUrlCooldown must be positive"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is much nicer, exactly how I would have formatted it myself! |
||
} | ||
|
||
@Test | ||
|
@@ -178,5 +177,4 @@ private ServiceConfiguration meshProxyServiceConfig(List<String> theUris, int ma | |
.maxNumRetries(maxNumRetries) | ||
.build(); | ||
} | ||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@iamdanfox @ferozco 0.3.1 made a lot of the fluent assertions line break.
I don't think that's necessarily bad though, it makes it a lot more obvious that there is a method call without having to look all the way to the right for it.
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.
I think the additional break is fine