Skip to content

Commit bae3016

Browse files
committed
docs: Styles fixes for samples/tests
1 parent 70898ae commit bae3016

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void createTopicWithAzureEventHubsIngestionExample(
6262
String subscriptionId,
6363
String gcpServiceAccount)
6464
throws IOException {
65-
try (TopicAdminClient topicAdminClient = TopicAdminClient.create(TopicAdminSettings.newBuilder().setEndpoint("staging-pubsub.sandbox.googleapis.com:443").build())) {
65+
try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
6666
TopicName topicName = TopicName.of(projectId, topicId);
6767

6868
IngestionDataSourceSettings.AzureEventHubs azureEventHubs =
@@ -85,8 +85,8 @@ public static void createTopicWithAzureEventHubsIngestionExample(
8585
.setIngestionDataSourceSettings(ingestionDataSourceSettings)
8686
.build());
8787

88-
System.out.println("Created topic with Azure Event Hubs ingestion settings: " +
89-
topic.getAllFields());
88+
System.out.println(
89+
"Created topic with Azure Event Hubs ingestion settings: " + topic.getAllFields());
9090
}
9191
}
9292
}

samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public static void createTopicWithConfluentCloudIngestionExample(
7777
.setIngestionDataSourceSettings(ingestionDataSourceSettings)
7878
.build());
7979

80-
System.out.println("Created topic with Confluent Cloud ingestion settings: " +
81-
topic.getAllFields());
80+
System.out.println(
81+
"Created topic with Confluent Cloud ingestion settings: " + topic.getAllFields());
8282
}
8383
}
8484
}

samples/snippets/src/test/java/pubsub/AdminIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public class AdminIT {
9898
String bootstrapServer = "fake-bootstrap-server-id.us-south1.gcp.confluent.cloud:9092";
9999
String clusterId = "fake-cluster-id";
100100
String confluentTopic = "fake-confluent-topic-name";
101-
String identityPoolId = "fake-pool-id"
101+
String identityPoolId = "fake-pool-id";
102102
// Azure Event Hubs ingestion settings.
103103
String resourceGroup = "fake-resource-group";
104104
String namespace = "fake-namespace";
@@ -447,7 +447,8 @@ public void testAdmin() throws Exception {
447447
tenantId,
448448
subscriptionId,
449449
gcpServiceAccount);
450-
assertThat(bout.toString()).contains("google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString());
450+
assertThat(bout.toString()).contains(
451+
"google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString());
451452
assertThat(bout.toString()).contains(resourceGroup);
452453
assertThat(bout.toString()).contains(namespace);
453454
assertThat(bout.toString()).contains(eventHub);

0 commit comments

Comments
 (0)