@Test public void addTwoTest() { customTreeStructures.add(3, 2); assertEquals(1, tracker.getBusinessObjects().size()); }
public CustomTreeStructure add(int category1) { CustomTreeStructure customTreeStructure = new CustomTreeStructure(tracker).setCategory1(category1); tracker.getBusinessObjects().put(customTreeStructure.getId(), customTreeStructure); return customTreeStructure; }
CustomTreeStructures extends Helper { public CustomTreeStructure add(int category1) { CustomTreeStructure customTreeStructure = new CustomTreeStructure(tracker).setCategory1(category1); tracker.getBusinessObjects().put(customTreeStructure.getId(), customTreeStructure); return customTreeStructure; } }
CustomTreeStructures extends Helper { public CustomTreeStructure add(int category1) { CustomTreeStructure customTreeStructure = new CustomTreeStructure(tracker).setCategory1(category1); tracker.getBusinessObjects().put(customTreeStructure.getId(), customTreeStructure); return customTreeStructure; } CustomTreeStructures(Tracker tracker); }
CustomTreeStructures extends Helper { public CustomTreeStructure add(int category1) { CustomTreeStructure customTreeStructure = new CustomTreeStructure(tracker).setCategory1(category1); tracker.getBusinessObjects().put(customTreeStructure.getId(), customTreeStructure); return customTreeStructure; } CustomTreeStructures(Tracker tracker); CustomTreeStructure add(int category1); CustomTreeStructure add(int category1, int category2); CustomTreeStructure add(int category1, int category2, int category3); }
CustomTreeStructures extends Helper { public CustomTreeStructure add(int category1) { CustomTreeStructure customTreeStructure = new CustomTreeStructure(tracker).setCategory1(category1); tracker.getBusinessObjects().put(customTreeStructure.getId(), customTreeStructure); return customTreeStructure; } CustomTreeStructures(Tracker tracker); CustomTreeStructure add(int category1); CustomTreeStructure add(int category1, int category2); CustomTreeStructure add(int category1, int category2, int category3);  }