Test unsplit string (join method).
()
| 53 | * Test unsplit string (join method). |
| 54 | */ |
| 55 | @Test |
| 56 | public void testJoin() |
| 57 | { |
| 58 | final String sep = "|"; |
| 59 | final List<String> list = List.of("one", "two", "three", "four"); |
| 60 | final String result = StringUtil.join(list, sep); |
| 61 | final String trueResult = "one|two|three|four"; |
| 62 | assertEquals(trueResult, result, "join returned bad String"); |
| 63 | } |
| 64 | |
| 65 | @Test |
| 66 | public void testCompareVersions() |