This is an automated email from the ASF dual-hosted git repository. ebakke pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
The following commit(s) were added to refs/heads/master by this push: new c451e08 [NETBEANS-731] Rename AutoHidingMenuBarManualTest to avoid a test failure. (#1067) c451e08 is described below commit c451e080ec1da0b84c1893f5400d65ab5b042098 Author: Eirik Bakke <eba...@alumni.princeton.edu> AuthorDate: Wed Jan 2 01:54:26 2019 +0100 [NETBEANS-731] Rename AutoHidingMenuBarManualTest to avoid a test failure. (#1067) This avoids a "No runnable methods" error while running tests in the core.windows package, due to the AutoHidingMenuBarManualTest class having a name that ends with "Test" but no test methods in it. The class in question is kept around for manual testing purposes only, and is not intended to be run automatically. See https://github.com/apache/incubator-netbeans/pull/1060 . --- .../src/org/netbeans/core/windows/view/ui/AutoHidingMenuBar.java | 2 ++ ...ngMenuBarManualTest.java => AutoHidingMenuBarManualTestApp.java} | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/core.windows/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBar.java b/platform/core.windows/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBar.java index 0f78c5b..eb1f18d 100644 --- a/platform/core.windows/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBar.java +++ b/platform/core.windows/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBar.java @@ -44,6 +44,8 @@ import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import org.openide.util.Utilities; +/* Note to developers: To manually test the behavior of this class without running the entire IDE, +run AutoHidingMenuBarManualTestApp.java in the test sources. */ /** * Container for logic that allows a {@link JFrame}'s {@link JMenuBar} to be hidden by default in * full screen mode, but shown again if the user moves the mouse to the top of the screen or invokes 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/AutoHidingMenuBarManualTestApp.java similarity index 96% rename from platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTest.java rename to platform/core.windows/test/unit/src/org/netbeans/core/windows/view/ui/AutoHidingMenuBarManualTestApp.java index bbf4d93..e3a91c4 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/AutoHidingMenuBarManualTestApp.java @@ -37,7 +37,7 @@ import javax.swing.UnsupportedLookAndFeelException; * A standalone Swing app that can be used to manually test {@link AutoHidingMenuBar} without * launching the full IDE. Tested on Windows 10. Not applicable to MacOS. */ -public final class AutoHidingMenuBarManualTest { +public final class AutoHidingMenuBarManualTestApp { private final JFrame frame = new JFrame(); private final JMenuBar mainMenuBar = new JMenuBar(); @@ -52,12 +52,12 @@ public final class AutoHidingMenuBarManualTest { { e.printStackTrace(); } - new AutoHidingMenuBarManualTest().setVisible(true); + new AutoHidingMenuBarManualTestApp().setVisible(true); } }); } - public AutoHidingMenuBarManualTest() { + public AutoHidingMenuBarManualTestApp() { initComponents(); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists