Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset ModelAssembler's validationEventListener to default #1124

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

gosar
Copy link
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
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