You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ratcash Developer (Jira)" <ji...@apache.org> on 2020/07/02 07:41:00 UTC

[jira] [Commented] (NETBEANS-4528) Test Results window showing 'Running' when AfterClass writes to the console

    [ https://issues.apache.org/jira/browse/NETBEANS-4528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150025#comment-17150025 ] 

Ratcash Developer commented on NETBEANS-4528:
---------------------------------------------

This may be relevant from the NB Error Log:


{code:java}
<record>
  <date>2020-07-02T09:38:36</date>
  <millis>1593675516628</millis>
  <sequence>2580</sequence>
  <level>700</level>
  <thread>398</thread>
  <message>UI_USER_CONFIGURATION</message>
  <key>UI_USER_CONFIGURATION</key>
  <catalog>org.netbeans.modules.uihandler.Bundle</catalog>
  <param>Linux, 5.7.0-3-MANJARO, amd64</param>
  <param>OpenJDK 64-Bit Server VM, 11.0.7+10-LTS, OpenJDK Runtime Environment, 11.0.7+10-LTS</param>
  <param>Apache NetBeans IDE 12.0</param>
  <param></param>
  <param>NullPointerException at org.netbeans.modules.gradle.test.GradleTestProgressListener.processTestOutput</param>
  <param>&lt;Please provide a description of the problem or the steps to reproduce&gt;</param>
  <param>*********</param>
</record>
{code}

> Test Results window showing 'Running' when AfterClass writes to the console
> ---------------------------------------------------------------------------
>
>                 Key: NETBEANS-4528
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4528
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 12.0, 11.2, 11.3
>         Environment: Linux, JDK8, JDK11
>            Reporter: Ratcash Developer
>            Assignee: Laszlo Kishalmi
>            Priority: Critical
>
> Reproduction scenario:
>  1. Create a new JAVA Gradle project in NB12
>  2. Create a new Test code as follows (using either JUnit 4 or TestNG 6+)
> {code:java}
> import org.junit.AfterClass;
> import org.junit.Test;
> public class ExampleTest {
>   @AfterClass
>   public static void cleanup() {
>     // if you comment out the next line, the TestResults window will properly show the test results
>     System.out.println("Cleaned");
>   }
>   @Test
>   public void testSomeMethod() {
>     System.out.println("Doing something.");
>   }
> }
> {code}
> 3. Hit CTLR+F6 and check the the results in the `Test Results` window. It will still show 'Running' as opposed to the actual test result.
>  4. Comment out the line System.out.println("Cleaned"); and hit CTLR+F6 again and check the TestResults window.
> Bug applies to NB11 and above. Tested on LINUX, JDK11 and JDK8. It does not matter, if the write to the console is directly, or through a logger.
>  Using a MAVEN project works just OK.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists