-
-
Notifications
You must be signed in to change notification settings - Fork 735
Related to #2971 display names #3000
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
Changes from 7 commits
112a13b
b9f23fa
677f24e
819c0a0
bc94223
bc288a5
23d887c
06cebe3
a5ba143
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||
import org.junit.jupiter.api.BeforeEach; | ||||||||||||||
import org.junit.jupiter.api.DisplayName; | ||||||||||||||
import org.junit.jupiter.api.Test; | ||||||||||||||
import org.junit.jupiter.api.Disabled; | ||||||||||||||
|
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.Disabled; | |
import org.junit.jupiter.api.Disabled; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Test; |
Can you also move this up, so the imports are nicely arranged in a alphabetical order?
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||||||
import org.junit.jupiter.api.BeforeEach; | ||||||||||||||||||
import org.junit.jupiter.api.DisplayName; | ||||||||||||||||||
import org.junit.jupiter.api.Test; | ||||||||||||||||||
import org.junit.jupiter.api.Disabled; | ||||||||||||||||||
|
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.Disabled; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Disabled; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Test; |
This one too!
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||||||||||||
import org.junit.jupiter.api.BeforeEach; | ||||||||||||||||||||||||
import org.junit.jupiter.api.DisplayName; | ||||||||||||||||||||||||
import org.junit.jupiter.api.Test; | ||||||||||||||||||||||||
import org.junit.jupiter.api.Disabled; | ||||||||||||||||||||||||
import static org.assertj.core.api.Assertions.assertThat; | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||
|
@@ -13,24 +14,28 @@ public void setup() { | |||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
@Test | ||||||||||||||||||||||||
@DisplayName("Black") | ||||||||||||||||||||||||
public void testBlackColorCode() { | ||||||||||||||||||||||||
assertThat(resistorColor.colorCode("black")).isEqualTo(0); | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
@Disabled("Remove to run test") | ||||||||||||||||||||||||
@Test | ||||||||||||||||||||||||
@DisplayName("white") | ||||||||||||||||||||||||
public void testWhiteColorCode() { | ||||||||||||||||||||||||
assertThat(resistorColor.colorCode("white")).isEqualTo(9); | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
@Disabled("Remove to run test") | ||||||||||||||||||||||||
@Test | ||||||||||||||||||||||||
@DisplayName("Orange") | ||||||||||||||||||||||||
public void testOrangeColorCode() { | ||||||||||||||||||||||||
assertThat(resistorColor.colorCode("orange")).isEqualTo(3); | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
@Disabled("Remove to run test") | ||||||||||||||||||||||||
@Test | ||||||||||||||||||||||||
@DisplayName("Colors") | ||||||||||||||||||||||||
public void testColors() { | ||||||||||||||||||||||||
assertThat(resistorColor.colors()).containsExactly( | ||||||||||||||||||||||||
"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white" | ||||||||||||||||||||||||
|
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.
This change will fix the checkstyle error. The line length needs to be under 120 characters, which is why the tests were failing.
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.
Thank you for catching this! I've fixed the long display name by breaking it into multiple lines as suggested.
The checkstyle error should now be resolved. Thanks for the guidance!