From 5c551ffec9be77e3f304b25563ff0e21fdf56c07 Mon Sep 17 00:00:00 2001 From: John DeRegnaucourt Date: Mon, 22 Apr 2024 11:30:38 -0400 Subject: [PATCH] added test for StringBuilder/StringBuffer to String --- .../cedarsoftware/util/convert/ConverterEverythingTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java b/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java index 510884cf..94e90732 100644 --- a/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java +++ b/src/test/java/com/cedarsoftware/util/convert/ConverterEverythingTest.java @@ -794,6 +794,12 @@ private static void loadStringTests() { TEST_DB.put(pair(String.class, String.class), new Object[][]{ {"same", "same"}, }); + TEST_DB.put(pair(StringBuffer.class, String.class), new Object[][]{ + {new StringBuffer("buffy"), "buffy"}, + }); + TEST_DB.put(pair(StringBuilder.class, String.class), new Object[][]{ + {new StringBuilder("buildy"), "buildy"}, + }); } /**