From 7c7c9447f62241fe5d0ec4f4c9b1e5dc4df00feb Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 27 Sep 2012 17:27:29 +0000 Subject: [PATCH] Add test for StringBuilder git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391116 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/lang3/text/StrBuilderAppendInsertTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java index 3d4b2cde0..6fe1ec317 100644 --- a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java +++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java @@ -112,6 +112,9 @@ public class StrBuilderAppendInsertTest { sb.append((CharSequence) "Seq"); assertEquals("foobazyesSeq", sb.toString()); + + sb.append(new StringBuilder("bld")); // Check it supports StringBuilder + assertEquals("foobazyesSeqbld", sb.toString()); } //-----------------------------------------------------------------------