@Test public void testDeleteTab() { System.out.println("deleteTab"); String e = "test"; CodeArrayListBeautifier instance = new CodeArrayListBeautifier(); instance.addTab(); instance.deleteTab(); instance.add(e); assertEquals("test", (instance.getCodeArrayList().get(0))); instance.deleteTab(); e = "test2"; instance.add(e); assertEquals("test2", (instance.getCodeArrayList().get(1))); e = "test3"; instance.addTab(); instance.add(e); instance.deleteTab(); assertEquals("\t" + "test3", (instance.getCodeArrayList().get(2))); }
public void deleteTab() { if (numberOfTabs > 0) { numberOfTabs--; } else { ErrorLogger.log("number of tabs is allready 0"); } }
CodeArrayListBeautifier { public void deleteTab() { if (numberOfTabs > 0) { numberOfTabs--; } else { ErrorLogger.log("number of tabs is allready 0"); } } }
CodeArrayListBeautifier { public void deleteTab() { if (numberOfTabs > 0) { numberOfTabs--; } else { ErrorLogger.log("number of tabs is allready 0"); } } CodeArrayListBeautifier(); }
CodeArrayListBeautifier { public void deleteTab() { if (numberOfTabs > 0) { numberOfTabs--; } else { ErrorLogger.log("number of tabs is allready 0"); } } 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 deleteTab() { if (numberOfTabs > 0) { numberOfTabs--; } else { ErrorLogger.log("number of tabs is allready 0"); } } CodeArrayListBeautifier(); void add(String addedString); void addTab(); void deleteTab(); ArrayList<String> getCodeArrayList(); void addArrayList(List<String> arrayList); void addAll(List<String> votingResultCode);  }