Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Creech committed Aug 10, 2022
1 parent 1387d25 commit 1276033
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public void testBuilderDefaultValues() {
public void testToBuilder() {
compareHttpRequest(HTTP_REQUEST, HTTP_REQUEST.toBuilder().build());
HttpRequest httpRequest =
HTTP_REQUEST.toBuilder()
HTTP_REQUEST
.toBuilder()
.setRequestMethod(RequestMethod.POST)
.setRequestUrl("http://www.other-example.com")
.setRequestSize(4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ public void testToBuilder() {
.setStatus(500)
.build();
LogEntry logEntry =
STRING_ENTRY.toBuilder()
STRING_ENTRY
.toBuilder()
.setPayload(StringPayload.of("otherPayload"))
.setLogName("otherLogName")
.setResource(MonitoredResource.newBuilder("global").build())
Expand Down Expand Up @@ -295,7 +296,8 @@ public void testToBuilder() {
new SourceLocation.Builder().setFile("hey.java").build(), logEntry.getSourceLocation());
assertEquals(StringPayload.of("otherPayload"), logEntry.getPayload());
logEntry =
logEntry.toBuilder()
logEntry
.toBuilder()
.setPayload(STRING_PAYLOAD)
.setLogName(LOG_NAME)
.setResource(RESOURCE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public void testBuilder() {
public void testToBuilder() {
compareMetricInfo(METRIC_INFO, METRIC_INFO.toBuilder().build());
MetricInfo metricInfo =
METRIC_INFO.toBuilder()
METRIC_INFO
.toBuilder()
.setName(NEW_NAME)
.setDescription(NEW_DESCRIPTION)
.setFilter(NEW_FILTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public void testBuilder() {
initializeExpectedMetric(2);
replay(logging);
Metric builtMetric =
expectedMetric.toBuilder()
expectedMetric
.toBuilder()
.setName(NEW_NAME)
.setFilter(NEW_FILTER)
.setDescription(NEW_DESCRIPTION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void testBuilder() {
public void testToBuilder() {
compareLogOperation(OPERATION, OPERATION.toBuilder().build());
Operation operation =
OPERATION.toBuilder()
OPERATION
.toBuilder()
.setId("newId")
.setProducer("newProducer")
.setFirst(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ public void testToBuilder() {
compareSinkInfo(DATASET_SINK_INFO, DATASET_SINK_INFO.toBuilder().build());
compareSinkInfo(TOPIC_SINK_INFO, TOPIC_SINK_INFO.toBuilder().build());
SinkInfo updatedSinkInfo =
BUCKET_SINK_INFO.toBuilder()
BUCKET_SINK_INFO
.toBuilder()
.setDestination(TOPIC_DESTINATION)
.setName("newName")
.setFilter("logName=projects/my-projectid/logs/syslog")
Expand All @@ -179,7 +180,8 @@ public void testToBuilder() {
assertEquals("logName=projects/my-projectid/logs/syslog", updatedSinkInfo.getFilter());
assertEquals(VersionFormat.V2, updatedSinkInfo.getVersionFormat());
updatedSinkInfo =
BUCKET_SINK_INFO.toBuilder()
BUCKET_SINK_INFO
.toBuilder()
.setDestination(BUCKET_DESTINATION)
.setName(NAME)
.setFilter(FILTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public void testBuilder() {
initializeExpectedSink(2);
replay(logging);
Sink builtSink =
expectedSink.toBuilder()
expectedSink
.toBuilder()
.setName(NEW_NAME)
.setFilter(NEW_FILTER)
.setDestination(DATASET_DESTINATION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public void testBuilder() {
public void testToBuilder() {
compareSourceLocation(SOURCE_LOCATION, SOURCE_LOCATION.toBuilder().build());
SourceLocation sourceLocation =
SOURCE_LOCATION.toBuilder()
SOURCE_LOCATION
.toBuilder()
.setFile("newFile")
.setLine(43L)
.setFunction("newFunction")
Expand Down

0 comments on commit 1276033

Please sign in to comment.