public void testDefaultStringWithNullStringAndNullDefault() { String s = StringUtils.defaultString(null, null); Assert.assertEquals(null, s); }
public void testDefaultStringWithGoodStringAndGoodDefault() { String testString = "test string"; String s = StringUtils.defaultString(testString, "test Default"); Assert.assertEquals(testString, s); }
public void testDefaultStringWithNullStringAndGoodDefault() { String testDefault = "test Default"; String s = StringUtils.defaultString(null, testDefault); Assert.assertEquals(testDefault, s); }