Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/metrocs/HelloAnyone.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ public String sayHello(final String toWhom) {
response = "A special hello to " + toWhom;
}
return response;
}
}
}
1 change: 0 additions & 1 deletion src/metrocs/HelloAnyoneTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package metrocs;
import org.junit.jupiter.api.Test;
Copy link
Owner

Choose a reason for hiding this comment

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

Note that the "error" is pointing out a shortcoming that needs to be addressed.
We need to consider why the error exists and what it is telling us.
What's actually needed here--to "fix" the "Checkstyle error"--is for there to be an actual test in the file.
Removing the import only "hides" the fact that the test class has no actual tests.
(This is similar to a "TODO:" error which is again indicating that something needs to be added rather than taken away.)


/**
* Tests for class HelloAnyone.
Expand Down
2 changes: 1 addition & 1 deletion src/metrocs/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ public String sayHello(final String toWhom) {
}
return GREETING + " " + toWhom;
}
}
}