@Test @Ignore public void shouldHaveOddNumberOfStarsInEachLine() { ChristmasTree tree = new ChristmasTree(3); String asciiTree = tree.toString(); String[] lines = asciiTree.split("[\r\n]"); for (String line : lines) { assertThat(line.length() % 2).isEqualTo(1); } }
@Override public String toString() { return asciiTree; }
ChristmasTree { @Override public String toString() { return asciiTree; } }
ChristmasTree { @Override public String toString() { return asciiTree; } ChristmasTree(int nbLine); }
ChristmasTree { @Override public String toString() { return asciiTree; } ChristmasTree(int nbLine); @Override String toString(); List<ChristmasBranch> getBranches(); }
ChristmasTree { @Override public String toString() { return asciiTree; } ChristmasTree(int nbLine); @Override String toString(); List<ChristmasBranch> getBranches();  }