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

Add unit tests for AndroidWorkflow.runLicenseManager() #14260

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

cbracken
Copy link
Member

@cbracken cbracken commented Jan 25, 2018

Adds unit tests for AndroidWorkflow.runLicenseManager().

@cbracken
Copy link
Member Author

cbracken commented Jan 25, 2018

Unit tests for #14249.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@tvolkert tvolkert left a comment

Choose a reason for hiding this comment

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

LGTM

when(sdk.sdkManagerPath).thenReturn('/foo/bar/sdkmanager');
when(processManager.canRun('/foo/bar/sdkmanager')).thenReturn(false);

expect(() async => await AndroidWorkflow.runLicenseManager(), throwsToolExit());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can just be:

expect(AndroidWorkflow.runLicenseManager(), throwsToolExit());

Same in the tests above.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call! Done for the two that throw.

@cbracken cbracken force-pushed the tests-for-version-check branch 6 times, most recently from bfbacd3 to d7c1bec Compare January 25, 2018 05:53
Adds unit tests for AndroidWorkflow.runLicenseManager().
@cbracken cbracken merged commit d3705f3 into flutter:master Jan 25, 2018
@cbracken cbracken deleted the tests-for-version-check branch January 25, 2018 06:27
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
Adds unit tests for AndroidWorkflow.runLicenseManager().
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants