anchor.diff:  include::{testDir}/example/defaultmethods/StringTests.java[tags=user_guide]
   ----
   
  -The above tests are merely meant as examples and therefore not complete.
  +NOTE: The above tests are merely meant as examples and therefore not complete.
   
   
   [[writing-tests-repeated-tests]]
  
positive.code: include::{testDir}/example/TaggingDemo.java[tags=user_guide]
  ----
  
  
  [[writing-tests-nested]]
  === Nested Tests
  
negative.code: | `@Test`            | Denotes that a method is a test method. Unlike JUnit 4's `@Test` annotation, this annotation does not declare any attributes, since test extensions in JUnit Jupiter operate based on their own dedicated annotations.
  | `@RepeatedTest`    | Denotes that a method is a test template for a <<writing-tests-repeated-tests, repeated test>>
  | `@TestFactory`     | Denotes that a method is a test factory for <<writing-tests-dynamic-tests, dynamic tests>>
  | `@TestInstance`    | Used to configure the <<writing-tests-test-instance-lifecycle, test instance lifecycle>> for the annotated test class
  | `@DisplayName`     | Declares a custom display name for the test class or test method
  | `@BeforeEach`      | Denotes that the annotated method should be executed _before_ *each* `@Test`, `@RepeatedTest`, `@ParameterizedTest`, or `@TestFactory` method in the current class; analogous to JUnit 4's `@Before`. Such methods are _inherited_.
  | `@AfterEach`       | Denotes that the annotated method should be executed _after_ *each* `@Test`, `@RepeatedTest`, `@ParameterizedTest`, or `@TestFactory` method in the current class; analogous to JUnit 4's `@After`. Such methods are _inherited_.
  | `@BeforeAll`       | Denotes that the annotated method should be executed _before_ *all* `@Test`, `@RepeatedTest`, `@ParameterizedTest`, and `@TestFactory` methods in the current class; analogous to JUnit 4's `@BeforeClass`. Such methods are _inherited_ and must be `static` unless the test class is annotated with `@TestInstance(Lifecycle.PER_CLASS)`.
  | `@AfterAll`        | Denotes that the annotated method should be executed _after_ *all* `@Test`, `@RepeatedTest`, `@ParameterizedTest`, and `@TestFactory` methods in the current class; analogous to JUnit 4's `@AfterClass`. Such methods are _inherited_ and must be `static` unless the test class is annotated with `@TestInstance(Lifecycle.PER_CLASS)`.
  | `@Nested`          | Denotes that the annotated class is a nested, non-static test class. `@BeforeAll` and `@AfterAll` methods cannot be used in a `@Nested` test class unless it is annotated with `@TestInstance(Lifecycle.PER_CLASS)`.
  | `@Tag`             | Used to declare _tags_ for filtering tests, either at the class or method level; analogous to test groups in TestNG or Categories in JUnit 4
  | `@Disabled`        | Used to _disable_ a test class or test method; analogous to JUnit 4's `@Ignore`
  | `@ExtendWith`      | Used to register custom <<extensions,extensions>>
  