Skip to content

Commit

Permalink
Added a missed scenario to batch sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
anudeepsharma committed Sep 28, 2016
1 parent 844e1ea commit c77163c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ public static void main(String[] args) {

batchAccount.synchronizeAutoStorageKeys();

// ============================================================
// Update name of application.
batchAccount
.update()
.updateApplication(applicationName)
.withDisplayName("New application display name")
.parent()
.apply();

batchAccount.refresh();
Utils.print(batchAccount);

// ============================================================
// Create another batch account

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ public static void print(BatchAccount batchAccount) {

for (Map.Entry<String, ApplicationPackage> applicationPackageEntry: application.applicationPackages().entrySet()) {
ApplicationPackage applicationPackage = applicationPackageEntry.getValue();
applicationPackage.name();
applicationPackage.state();
StringBuilder singleApplicationPackage = new StringBuilder().append("\n\t\t\t\tapplicationPackage : " + applicationPackage.name());
singleApplicationPackage.append("\n\t\t\t\tapplicationPackageState : " + applicationPackage.state());

Expand Down

0 comments on commit c77163c

Please sign in to comment.