Beispiel #1
0
 @Test
 void wrongTagDoesNotMatch() {
   assertThrows(
       AssertionError.class,
       () -> {
         PageFragment fragment = MockFactory.fragment().withTagName("foo").build();
         assertThat(fragment, has(tag("bar")));
       });
 }
Beispiel #2
0
 @Test
 void equalTagMatches() {
   PageFragment fragment = MockFactory.fragment().withTagName("foo").build();
   assertThat(fragment, has(tag("foo")));
 }