@Test public void testBreakIntPalindromes() { PalindromeHelper helper = new PalindromeHelper(); char[] text = "a".toCharArray(); PalindromeGroup group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("a", group.getStrings().get(0)); text = "ab".toCharArray(); group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("a", group.getStrings().get(0)); assertEquals("b", group.getStrings().get(1)); text = "aba".toCharArray(); group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("aba", group.getStrings().get(0)); text = "abba".toCharArray(); group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("abba", group.getStrings().get(0)); text = "abbac".toCharArray(); group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("abba", group.getStrings().get(0)); assertEquals("c", group.getStrings().get(1)); }
public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); } }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end);  }