@Test public void testFindLongestPalindrome() { String result = l.findLongestPalindrome("abc"); assertEquals("a", result); result = l.findLongestPalindrome("ababa"); assertEquals("ababa", result); }
@Test(expected = RuntimeException.class) public void testFindLongestPalindromeThrowsException() { l.findLongestPalindrome(""); }