Skip to content

Commit

Permalink
string concatenation, whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jabubake committed Feb 25, 2017
1 parent 67d5dd5 commit 5da936a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ public void replaceSubscriptionPolicyAndTestPermissionsIsSuccessful() throws Exc
assertTrue(response.getPermissionsList().contains("pubsub.subscriptions.get"));
}



private void createTopic(String name) throws Exception {
try (PublisherClient publisherClient = PublisherClient.create()) {
publisherClient.createTopic(TopicName.create(projectId, name));
Expand All @@ -201,7 +199,7 @@ private Set<String> publishMessages(String topicName, int numMessages) throws Ex
Set<String> messages = new HashSet<>();
Publisher publisher = Publisher.newBuilder(TopicName.create(projectId, topicName)).build();
for (int i = 1; i<= numMessages; i++) {
String message = formatForTest("message-" + String.valueOf(i));
String message = formatForTest("message-" + i);
PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(
ByteString.copyFromUtf8(message)).build();
publisher.publish(pubsubMessage);
Expand Down

0 comments on commit 5da936a

Please sign in to comment.