SystemPropTest_2.java revision 870
870N/A @summary verifies that system property sun.awt.enableExtraMouseButtons might be set to true by the command line
870N/A//1) Verifies that System.getProperty("sun.awt.enableExtraMouseButtons") returns true if set through the command line.
870N/A//2) Verifies that Toolkit.areExtraMouseButtonsEnabled() returns true if the proprty is set through the command line.
870N/Apublic class SystemPropTest_2 {
870N/A boolean propValue = Boolean.parseBoolean(System.getProperty("sun.awt.enableExtraMouseButtons"));
870N/A throw new RuntimeException("TEST FAILED : System property sun.awt.enableExtraMouseButtons = " + propValue);
870N/A throw new RuntimeException("TEST FAILED : Toolkit.areExtraMouseButtonsEnabled() returns false");