Skip to content

Reset ModelAssembler's validationEventListener to default#1124

Merged
gosar merged 1 commit intosmithy-lang:mainfrom
gosar:assembler-reset
Mar 11, 2022
Merged

Reset ModelAssembler's validationEventListener to default#1124
gosar merged 1 commit intosmithy-lang:mainfrom
gosar:assembler-reset

Conversation

@gosar
Copy link
Copy Markdown
Contributor

@gosar gosar commented Mar 9, 2022

The resetDoesNotBarf test would throw NPE before the change and now passes.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gosar gosar requested a review from a team as a code owner March 9, 2022 02:15
assembler.assemble();
}

// reset() affects multiple properties of the ModelAssembler. The test asserts one of them (shapes).
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think it was worth asserting each property, by exposing a package-private access to each property, or a separate behavior test like below. LMK if you think otherwise.

@gosar gosar merged commit 954697b into smithy-lang:main Mar 11, 2022
@gosar gosar deleted the assembler-reset branch March 11, 2022 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants