From 37ba8d3981ae802173f2935c71a99eb9170d248a Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Sun, 2 Dec 2018 14:11:09 +0100 Subject: [PATCH 1/2] Update to JUnit version 5.3.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From c368955343029d1a99d1b6817eb9fef0c62f02d3 Mon Sep 17 00:00:00 2001 From: RahulNagekar Date: Thu, 29 Nov 2018 01:24:43 +0530 Subject: [PATCH 2/2] Add additional tests for StandardToStringStyle (closes #390) --- .../builder/StandardToStringStyleTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) 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()); + } + }