mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-08 19:45:12 +00:00
8355441: Remove antipattern from PassFailJFrame.forcePass javadoc
Reviewed-by: aivanov, honkar
This commit is contained in:
parent
5d2d1ab574
commit
bd7561c315
@ -1294,14 +1294,16 @@ public final class PassFailJFrame {
|
||||
|
||||
/**
|
||||
* Forcibly pass the test.
|
||||
* <p>The sample usage:
|
||||
* <pre><code>
|
||||
* PrinterJob pj = PrinterJob.getPrinterJob();
|
||||
* if (pj == null || pj.getPrintService() == null) {
|
||||
* System.out.println(""Printer not configured or available.");
|
||||
* PassFailJFrame.forcePass();
|
||||
* }
|
||||
* </code></pre>
|
||||
* <p>
|
||||
* Use this method in semi-automatic tests when
|
||||
* the test determines that all the conditions for passing the test are met.
|
||||
* <p>
|
||||
* <strong>Do not use</strong> this method in cases where a resource is unavailable or a
|
||||
* feature isn't supported, throw {@code jtreg.SkippedException} instead.
|
||||
*
|
||||
* <p>A sample usage can be found in
|
||||
* <a href="https://github.com/openjdk/jdk/blob/7283c8b/test/jdk/java/awt/FileDialog/SaveFileNameOverrideTest.java#L84">{@code
|
||||
* SaveFileNameOverrideTest.java}</a>
|
||||
*/
|
||||
public static void forcePass() {
|
||||
latch.countDown();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user