Skip to content

Commit

Permalink
chore: migrate to owlbot (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 authored Jul 16, 2021
1 parent 0861343 commit d5b3d01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// sample-metadata:
// title: List Recommendations
// description: List recommendations for a specified project, location, and recommender.
// usage: gradle run -PmainClass=com.google.cloud.examples.recommender.v1beta1.SampleListRecommendations
// usage: gradle run
// -PmainClass=com.google.cloud.examples.recommender.v1beta1.SampleListRecommendations

package com.google.cloud.examples.recommender.v1beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ public static void listRecommendations(String projectId, String location, String
// Indicate the request was successful
System.out.println("List recommendations successful");
} catch (PermissionDeniedException e) {
System.out.println("Permission denied for project '" + projectId
+ "'. Ensure you have the appropriate permissions to list recommendations: \n" + e
.toString());
System.out.println(
"Permission denied for project '"
+ projectId
+ "'. Ensure you have the appropriate permissions to list recommendations: \n"
+ e.toString());
} catch (InvalidArgumentException e) {
System.out.println(
("Invalid argument for projectId. Ensure you have 'GOOGLE_CLOUD_PROJECT' set: \n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public class ListRecommendationsTest {
private static void requireEnvVar(String varName) {
assertNotNull(
System.getenv(varName),
"Environment variable '%s' is required to perform these tests.".format(varName)
);
"Environment variable '%s' is required to perform these tests.".format(varName));
}

@BeforeClass
Expand Down

0 comments on commit d5b3d01

Please sign in to comment.