mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
added tests to StringUtils.safeAppend()
This commit is contained in:
@ -78,6 +78,20 @@ class StringUtilsTest extends BaseTest
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
@Test
|
||||||
|
void test_safeAppend()
|
||||||
|
{
|
||||||
|
assertEquals("Foo", StringUtils.safeAppend("Foo", null));
|
||||||
|
assertEquals("Foo", StringUtils.safeAppend(null, "Foo"));
|
||||||
|
assertEquals("FooBar", StringUtils.safeAppend("Foo", "Bar"));
|
||||||
|
assertEquals("", StringUtils.safeAppend(null, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
Reference in New Issue
Block a user