@Test public void should_generate_caption_tag_with_title(){ caption.setTitle("dummy title"); assertThat(caption.toHtml().toString()).isEqualTo("<caption title=\"dummy title\"></caption>"); }
public void setTitle(String title) { this.title = title; }
HtmlCaption extends HtmlTagWithContent { public void setTitle(String title) { this.title = title; } }
HtmlCaption extends HtmlTagWithContent { public void setTitle(String title) { this.title = title; } HtmlCaption(); }
HtmlCaption extends HtmlTagWithContent { public void setTitle(String title) { this.title = title; } HtmlCaption(); String getTitle(); void setTitle(String title); }
HtmlCaption extends HtmlTagWithContent { public void setTitle(String title) { this.title = title; } HtmlCaption(); String getTitle(); void setTitle(String title);  }