Skip to content
#

web-development

Here are 1,428 public repositories matching this topic...

stonio
stonio commented Feb 1, 2017

How could I use Nu Html Checker with JUnit in integration test to assert a HTML page is valid?

I imagine something like:

@Test
public void testHomePage() {
	Validator validator = new EmbeddedValidator(settings);
	ValidationResult result = validator.validate(inputStream);
	assertThat(result.getErrors()).isEmpty();
	assertThat(result.getWarnings()).isEmpty();
}

Improve this page

Add a description, image, and links to the web-development topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the web-development topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.