Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1325

Increase test coverage of ToStringBuilder class to 100%

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Adding test cases to test the following methods of ToStringBuilder, with this, the code coverage stands at 100%.

      1) append(final String fieldName, final boolean[] array)
      2) append(final String fieldName, final boolean[] array, final boolean fullDetail)
      3) append(final String fieldName, final byte[] array)
      4) append(final String fieldName, final byte[] array, final boolean fullDetail)
      5) append(final String fieldName, final char[] array)
      6) append(final String fieldName, final char[] array, final boolean fullDetail)
      7) append(final String fieldName, final double[] array)
      8) append(final String fieldName, final double[] array, final boolean fullDetail)
      9) append(final String fieldName, final float[] array)
      10) append(final String fieldName, final float[] array, final boolean fullDetail)
      11) append(final String fieldName, final int[] array)
      12) append(final String fieldName, final int[] array, final boolean fullDetail)
      13) append(final String fieldName, final long[] array)
      14) append(final String fieldName, final long[] array, final boolean fullDetail)
      15) append(final String fieldName, final Object[] array)
      16) append(final String fieldName, final Object[] array, final boolean fullDetail)
      17) append(final String fieldName, final short[] array)
      18) append(final String fieldName, final short[] array, final boolean fullDetail)
      19) appendAsObjectToString(final Object srcObject)

      Attachments

        Issue Links

          Activity

            People

              kinow Bruno P. Kinoshita
              arshad0789 Arshad Basha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: