-
Notifications
You must be signed in to change notification settings - Fork 169
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 update firmware #50
Conversation
Add some tests for DiagnosticsStatusNotification and FirmwareStatusNotification.
Houston we have merge conflicts :( @sumlin can you take look? |
|
||
MIT License | ||
|
||
Copyright (C) 2016-2018 Thomas Volden <tv@chargetime.eu> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be your name and e-mail. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, added mine too
// When | ||
Feature[] features = profile.getFeatureList(); | ||
|
||
// Then | ||
assertThat(findFeature(features, "GetDiagnostics"), is(instanceOf(GetDiagnosticsFeature.class))); | ||
assertThat(findFeature(features, "GetDiagnostics"), Is.is(instanceOf(GetDiagnosticsFeature.class))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Principle, only one assert per unit test. Why?
It makes the naming the unit test allot easier for starters... And since an assert is a throwable, you don't know it's only the first failing assert or all the asserts that fail.
http://osherove.com/blog/2005/4/14/try-to-avoid-multiple-asserts-in-a-single-unit-test.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I'll fix that.
Implemented with #56 |
No description provided.