Polish Javadoc for test annotations

This commit is contained in:
Sam Brannen
2024-01-09 16:32:22 +01:00
parent b1bf1b0c82
commit 4b0443090a
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,8 +38,7 @@ import java.lang.annotation.Target;
* {@code @Rollback} defines rollback semantics for the specific test method,
* potentially overriding class-level default commit or rollback semantics.
*
* <p>As of Spring Framework 4.2, {@code @Commit} can be used as direct
* replacement for {@code @Rollback(false)}.
* <p>{@code @Commit} can be used as direct replacement for {@code @Rollback(false)}.
*
* <p><strong>Warning</strong>: Declaring {@code @Commit} and {@code @Rollback}
* on the same test method or on the same test class is unsupported and may

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.lang.annotation.Target;
* Test annotation for use with JUnit 4 to indicate that a test method has to finish
* execution in a {@linkplain #millis() specified time period}.
*
* <p>If the text execution takes longer than the specified time period, then
* <p>If the test execution takes longer than the specified time period, then
* the test is considered to have failed.
*
* <p>Note that the time period includes execution of the test method itself,