Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit 938d07c

Browse files
committed
more intention revealing tests
1 parent 8cfeea4 commit 938d07c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bitvunit-demo/src/test/java/de/codescape/bitvunit/demo/HtmlUnitDemoSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class HtmlUnitDemoSpec extends AbstractBaseSpec {
1818

1919
@Test
2020
public void testingAccessibilityWithHtmlUnit() throws Exception {
21-
// Create a HtmlUnit WebClient instance
21+
// create a HtmlUnit WebClient instance
2222
WebClient webClient = new WebClient();
2323

2424
// navigate to a page or interact with a page

bitvunit-demo/src/test/java/de/codescape/bitvunit/demo/URLDemoSpec.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ public class URLDemoSpec extends AbstractBaseSpec {
1818

1919
@Test
2020
public void testingAccessibilityWithSimpleURL() throws Exception {
21-
assertThat(new URL(urlForPage("index.html")), is(compliantTo(ALL_RULES)));
21+
// create a URL
22+
URL url = new URL(urlForPage("index.html"));
23+
24+
// assert accessibility
25+
assertThat(url, is(compliantTo(ALL_RULES)));
2226
}
2327

2428
}

0 commit comments

Comments
 (0)