garydgregory commented on code in PR #1215:
URL: https://github.com/apache/commons-lang/pull/1215#discussion_r1617147931


##########
src/test/java/org/apache/commons/lang3/function/ConsumersTest.java:
##########
@@ -46,4 +51,23 @@ public void testNop() {
         Consumers.nop().accept("");
     }
 
+    /**
+     * Tests {@link Consumers#accept(Object, Consumer)}.
+     */
+    @Test
+    public void testAccept() {
+        final StringBuilder builder = new StringBuilder("foo");

Review Comment:
   Don't use mock testing here, it makes the test too obtuse; this is not a 
hard feature to test IMO.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to