@Test public void addLine() { Annotation instance = new Annotation("testfile.tst"); instance.addLine("1.0", "Author", true); assertEquals(instance.size(), 1); instance.addLine(null, null, true); }
void addLine(String revision, String author, boolean enabled) { final Line line = new Line(revision, author, enabled); lines.add(line); widestRevision = Math.max(widestRevision, line.revision.length()); widestAuthor = Math.max(widestAuthor, line.author.length()); }
Annotation { void addLine(String revision, String author, boolean enabled) { final Line line = new Line(revision, author, enabled); lines.add(line); widestRevision = Math.max(widestRevision, line.revision.length()); widestAuthor = Math.max(widestAuthor, line.author.length()); } }
Annotation { void addLine(String revision, String author, boolean enabled) { final Line line = new Line(revision, author, enabled); lines.add(line); widestRevision = Math.max(widestRevision, line.revision.length()); widestAuthor = Math.max(widestAuthor, line.author.length()); } Annotation(String filename); }
Annotation { void addLine(String revision, String author, boolean enabled) { final Line line = new Line(revision, author, enabled); lines.add(line); widestRevision = Math.max(widestRevision, line.revision.length()); widestAuthor = Math.max(widestAuthor, line.author.length()); } Annotation(String filename); String getRevision(int line); Set<String> getRevisions(); String getAuthor(int line); boolean isEnabled(int line); int size(); int getWidestRevision(); int getWidestAuthor(); String getDesc(String revision); int getFileVersion(String revision); int getFileVersionsCount(); Map<String, String> getColors(); String getFilename(); void writeTooltipMap(Writer out); @Override String toString(); }
Annotation { void addLine(String revision, String author, boolean enabled) { final Line line = new Line(revision, author, enabled); lines.add(line); widestRevision = Math.max(widestRevision, line.revision.length()); widestAuthor = Math.max(widestAuthor, line.author.length()); } Annotation(String filename); String getRevision(int line); Set<String> getRevisions(); String getAuthor(int line); boolean isEnabled(int line); int size(); int getWidestRevision(); int getWidestAuthor(); String getDesc(String revision); int getFileVersion(String revision); int getFileVersionsCount(); Map<String, String> getColors(); String getFilename(); void writeTooltipMap(Writer out); @Override String toString();  }