mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
#21 HTML Extraktion mit in der API angebunden
This commit is contained in:
parent
7ba7c84533
commit
65f4dfad68
3 changed files with 40 additions and 0 deletions
|
|
@ -92,4 +92,15 @@ public class DefaultCheckTest {
|
|||
assertThat(docs).hasSize(MULTI_COUNT);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testExtractHtml() {
|
||||
final DefaultResult doc = (DefaultResult) this.implementation.checkInput(read(VALID_EXAMPLE));
|
||||
assertThat(doc).isNotNull();
|
||||
assertThat(doc.getReport()).isNotNull();
|
||||
assertThat(doc.isAcceptable()).isFalse();
|
||||
assertThat(doc.extractHtmlAsString()).isNotEmpty();
|
||||
assertThat(doc.extractHtmlAsElement()).isNotEmpty();
|
||||
assertThat(doc.extractHtml()).isNotEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue