Skip to content

Commit

Permalink
Update integration tests to reflect new format
Browse files Browse the repository at this point in the history
  • Loading branch information
hpmellema committed Aug 2, 2023
1 parent 9388e37 commit b9e5e3f
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,17 @@ public void unexpectedTemplate() {
.append("Invalid template `blabla`. `Smithy-Examples` provides the following templates:")
.append(System.lineSeparator())
.append(System.lineSeparator())
.append("NAME DOCUMENTATION")
.append("───────────────────── ─────────────────────────────────────────────────────────────────────────────")
.append(System.lineSeparator())
.append("--------------------- -----------------------------------------------------")
.append("NAME DOCUMENTATION")
.append(System.lineSeparator())
.append("included-file-json Smithy Quickstart example with json file included. ")
.append("───────────────────── ─────────────────────────────────────────────────────────────────────────────")
.append(System.lineSeparator())
.append("included-files-gradle Smithy Quickstart example with gradle files included.")
.append("included-file-json Smithy Quickstart example with json file included.")
.append(System.lineSeparator())
.append("quickstart-cli Smithy Quickstart example weather service. ")
.append("included-files-gradle Smithy Quickstart example with gradle files included.")
.append(System.lineSeparator())
.append("quickstart-cli Smithy Quickstart example weather service.")
.append(System.lineSeparator())
.toString();

Expand Down Expand Up @@ -191,17 +193,19 @@ public void withListArg() {
"init", "--list", "--url", templatesDir.toString()));

String expectedOutput = new StringBuilder()
.append("NAME DOCUMENTATION")
.append(System.lineSeparator())
.append("--------------------- -----------------------------------------------------")
.append(System.lineSeparator())
.append("included-file-json Smithy Quickstart example with json file included. ")
.append(System.lineSeparator())
.append("included-files-gradle Smithy Quickstart example with gradle files included.")
.append(System.lineSeparator())
.append("quickstart-cli Smithy Quickstart example weather service. ")
.append(System.lineSeparator())
.toString();
.append("───────────────────── ─────────────────────────────────────────────────────────────────────────────")
.append(System.lineSeparator())
.append("NAME DOCUMENTATION")
.append(System.lineSeparator())
.append("───────────────────── ─────────────────────────────────────────────────────────────────────────────")
.append(System.lineSeparator())
.append("included-file-json Smithy Quickstart example with json file included.")
.append(System.lineSeparator())
.append("included-files-gradle Smithy Quickstart example with gradle files included.")
.append(System.lineSeparator())
.append("quickstart-cli Smithy Quickstart example weather service.")
.append(System.lineSeparator())
.toString();

assertThat(result.getOutput(), containsString(expectedOutput));
assertThat(result.getExitCode(), is(0));
Expand Down

0 comments on commit b9e5e3f

Please sign in to comment.