eirikbakke closed pull request #1060: [NETBEANS-731] Making the test class a 
JUnit test
URL: https://github.com/apache/incubator-netbeans/pull/1060
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTest.java
 
b/platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTest.java
index bbf4d93c6c..e71795d73c 100644
--- 
a/platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTest.java
+++ 
b/platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTest.java
@@ -32,6 +32,7 @@
 import javax.swing.SwingUtilities;
 import javax.swing.UIManager;
 import javax.swing.UnsupportedLookAndFeelException;
+import org.junit.Test;
 
 /**
  * A standalone Swing app that can be used to manually test {@link 
AutoHidingMenuBar} without
@@ -41,7 +42,7 @@
     private final JFrame frame = new JFrame();
     private final JMenuBar mainMenuBar = new JMenuBar();
 
-    public static void main(String args[]) {
+    public static void main(String... args) {
         SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
@@ -61,6 +62,11 @@ public AutoHidingMenuBarManualTest() {
         initComponents();
     }
 
+    @Test
+    public void runMain() {
+        main();
+    }
+
     public void setVisible(boolean visible) {
         frame.setVisible(visible);
     }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to