@Test public void testAdd() { System.out.println("add"); String e = "test"; CodeArrayListBeautifier instance = new CodeArrayListBeautifier(); instance.add(e); assertEquals("test", (instance.getCodeArrayList().get(0))); instance.add(null); }
public void add(String addedString) { if (addedString != null) { String tabbed = ""; for (int i = 0; i < numberOfTabs; i++) { tabbed += "\t"; } code.add(tabbed + addedString); } }
CodeArrayListBeautifier { public void add(String addedString) { if (addedString != null) { String tabbed = ""; for (int i = 0; i < numberOfTabs; i++) { tabbed += "\t"; } code.add(tabbed + addedString); } } }
CodeArrayListBeautifier { public void add(String addedString) { if (addedString != null) { String tabbed = ""; for (int i = 0; i < numberOfTabs; i++) { tabbed += "\t"; } code.add(tabbed + addedString); } } CodeArrayListBeautifier(); }
CodeArrayListBeautifier { public void add(String addedString) { if (addedString != null) { String tabbed = ""; for (int i = 0; i < numberOfTabs; i++) { tabbed += "\t"; } code.add(tabbed + addedString); } } CodeArrayListBeautifier(); void add(String addedString); void addTab(); void deleteTab(); ArrayList<String> getCodeArrayList(); void addArrayList(List<String> arrayList); void addAll(List<String> votingResultCode); }
CodeArrayListBeautifier { public void add(String addedString) { if (addedString != null) { String tabbed = ""; for (int i = 0; i < numberOfTabs; i++) { tabbed += "\t"; } code.add(tabbed + addedString); } } CodeArrayListBeautifier(); void add(String addedString); void addTab(); void deleteTab(); ArrayList<String> getCodeArrayList(); void addArrayList(List<String> arrayList); void addAll(List<String> votingResultCode);  }