Documenting the InterruptedException behavior model
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 07 Apr 2013 22:30:07 +0200
branchmodel
changeset 945c8f760b2eb5a
parent 944 1e2b0dcc8326
child 946 986cb1517ead
Documenting the InterruptedException behavior
rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/BrwsrTest.java
     1.1 --- a/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/BrwsrTest.java	Sun Apr 07 21:41:57 2013 +0200
     1.2 +++ b/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/BrwsrTest.java	Sun Apr 07 22:30:07 2013 +0200
     1.3 @@ -29,6 +29,10 @@
     1.4   * The browser to is by default executed via {@link java.awt.Desktop#browse(java.net.URI)},
     1.5   * but one can change that by specifying <code>-Dvmtest.brwsrs=firefox,google-chrome</code>
     1.6   * property.
     1.7 + * <p>
     1.8 + * If the annotated method throws {@link InterruptedException}, it will return
     1.9 + * the processing to the browser and after 100ms, called again. This is useful
    1.10 + * for testing asynchronous communication, etc.
    1.11   *
    1.12   * @author Jaroslav Tulach <jtulach@netbeans.org>
    1.13   */