diff --git a/pom.xml b/pom.xml index 6b23bc793..cbbedf877 100644 --- a/pom.xml +++ b/pom.xml @@ -627,7 +627,7 @@ 1.21 benchmarks - 5.3.1 + 5.3.2 false diff --git a/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java index 7d4b6a01b..8e8ebe0e0 100644 --- a/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java @@ -17,6 +17,8 @@ package org.apache.commons.lang3.builder; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.HashMap; @@ -141,4 +143,24 @@ public class StandardToStringStyleTest { assertEquals(baseStr + "[%NULL%]", new ToStringBuilder(base).append((Object) array).toString()); } + @Test + public void testDefaultValueOfUseClassName() { + assertTrue((new StandardToStringStyle()).isUseClassName()); + } + + @Test + public void testDefaultValueOfUseFieldNames() { + assertTrue((new StandardToStringStyle()).isUseFieldNames()); + } + + @Test + public void testDefaultValueOfUseShortClassName() { + assertFalse((new StandardToStringStyle()).isUseShortClassName()); + } + + @Test + public void testDefaultValueOfUseIdentityHashCode() { + assertTrue((new StandardToStringStyle()).isUseIdentityHashCode()); + } + }