public Component newBodyComponent(String markupId) {
return new UploadProgressBar(markupId, new Form("dummy"), Model.of(50));
}
});
TagTester tag = tester().getTagByWicketId(id());
assertThat(tag.getAttribute("data-content"), startsWith("<wicket:div wicket:id=\"compId\" class=\"progress\"><wicket:panel>"));
assertThat(tag.getAttribute("data-content"), endsWith("</wicket:panel></wicket:div>"));
assertThat(tag.getAttribute("data-content"), containsString("<div wicket:id=\"bar\" class=\"progress-bar\" style=\"width: 50%\""));
}