[ 
https://issues.apache.org/jira/browse/LANG-1662?focusedWorklogId=787927&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-787927
 ]

ASF GitHub Bot logged work on LANG-1662:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jul/22 16:11
            Start Date: 05/Jul/22 16:11
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on PR #849:
URL: https://github.com/apache/commons-lang/pull/849#issuecomment-1175237551

   When I apply the patch locally and run the Maven build from the command 
line, I get failures because it seems like the test order matters:
   
   ```
   [ERROR] org.apache.commons.lang3.builder.ToStringBuilderTest.testDoubleArray 
 Time elapsed: 0.001 s  <<< FAILURE!
   org.opentest4j.AssertionFailedError: Expected null, actual: 
{org.apache.commons.lang3.builder.ReflectionToStringBuilderIncludeTest$TestFeature@58e9cc9a=null,
 org.apache.commons.lang3.builder.ReflectionToStringBuil
   derIncludeTest$TestFeature@7dca6126=null} ==> expected: <null> but was: 
<{org.apache.commons.lang3.builder.ReflectionToStringBuilderIncludeTest$TestFeature@58e9cc9a=null,
 org.apache.commons.lang3.builder.Reflectio
   nToStringBuilderIncludeTest$TestFeature@7dca6126=null}>
           at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
           at org.junit.jupiter.api.AssertNull.failNotNull(AssertNull.java:54)
           at org.junit.jupiter.api.AssertNull.assertNull(AssertNull.java:38)
   ```




Issue Time Tracking
-------------------

            Worklog Id:     (was: 787927)
    Remaining Estimate: 3.5h  (was: 3h 40m)
            Time Spent: 2.5h  (was: 2h 20m)

> Create methods on ReflectionToStringBuilder to reflect only select fields
> -------------------------------------------------------------------------
>
>                 Key: LANG-1662
>                 URL: https://issues.apache.org/jira/browse/LANG-1662
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.builder.*
>            Reporter: Daniel Augusto Veronezi Salvador
>            Priority: Minor
>   Original Estimate: 6h
>          Time Spent: 2.5h
>  Remaining Estimate: 3.5h
>
> *ReflectionToStringBuilder* has methods to exclude fields from *toString*; If 
> we have an object with several fields and want to reflect only a fews, we 
> have to list all the fields that we don't want to reflect and pass to 
> *excludeFieldNames*.
> Would be valid implement a way to pass the fields that we want and reflect 
> only the selected fields?
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to