< prev index next >

modules/javafx.controls/src/test/java/test/javafx/scene/control/skin/MenuBarSkinTest.java

Print this page

 13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14  * version 2 for more details (a copy is included in the LICENSE file that
 15  * accompanied this code).
 16  *
 17  * You should have received a copy of the GNU General Public License version
 18  * 2 along with this work; if not, write to the Free Software Foundation,
 19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20  *
 21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22  * or visit www.oracle.com if you need additional information or have any
 23  * questions.
 24  */
 25 
 26 package test.javafx.scene.control.skin;
 27 
 28 import static org.junit.Assert.assertEquals;
 29 import static org.junit.Assert.assertTrue;
 30 
 31 import com.sun.javafx.menu.MenuBase;
 32 import com.sun.javafx.stage.WindowHelper;
 33 import javafx.scene.control.MenuItem;
 34 import test.com.sun.javafx.pgstub.StubToolkit;
 35 import com.sun.javafx.tk.Toolkit;
 36 import javafx.beans.value.ObservableValue;
 37 import javafx.geometry.Insets;
 38 import javafx.scene.Group;
 39 import javafx.scene.Scene;
 40 import javafx.scene.control.Menu;
 41 import javafx.scene.control.MenuBar;

 42 import javafx.stage.Stage;
 43 
 44 import java.util.List;
 45 import javafx.scene.control.skin.MenuBarSkin;
 46 
 47 import org.junit.Before;
 48 import org.junit.BeforeClass;
 49 import org.junit.Test;
 50 
 51 /**
 52  * This fails with IllegalStateException because of the toolkit's check for the FX application thread
 53  */
 54 public class MenuBarSkinTest {
 55     private MenuBar menubar;
 56     private MenuBarSkinMock skin;
 57     private static Toolkit tk;
 58     private Scene scene;
 59     private Stage stage;
 60 
 61 

 13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14  * version 2 for more details (a copy is included in the LICENSE file that
 15  * accompanied this code).
 16  *
 17  * You should have received a copy of the GNU General Public License version
 18  * 2 along with this work; if not, write to the Free Software Foundation,
 19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20  *
 21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22  * or visit www.oracle.com if you need additional information or have any
 23  * questions.
 24  */
 25 
 26 package test.javafx.scene.control.skin;
 27 
 28 import static org.junit.Assert.assertEquals;
 29 import static org.junit.Assert.assertTrue;
 30 
 31 import com.sun.javafx.menu.MenuBase;
 32 import com.sun.javafx.stage.WindowHelper;

 33 import test.com.sun.javafx.pgstub.StubToolkit;
 34 import com.sun.javafx.tk.Toolkit;
 35 import javafx.beans.value.ObservableValue;
 36 import javafx.geometry.Insets;
 37 import javafx.scene.Group;
 38 import javafx.scene.Scene;
 39 import javafx.scene.control.Menu;
 40 import javafx.scene.control.MenuBar;
 41 import javafx.scene.control.MenuItem;
 42 import javafx.stage.Stage;
 43 
 44 import java.util.List;
 45 import javafx.scene.control.skin.MenuBarSkin;
 46 
 47 import org.junit.Before;
 48 import org.junit.BeforeClass;
 49 import org.junit.Test;
 50 
 51 /**
 52  * This fails with IllegalStateException because of the toolkit's check for the FX application thread
 53  */
 54 public class MenuBarSkinTest {
 55     private MenuBar menubar;
 56     private MenuBarSkinMock skin;
 57     private static Toolkit tk;
 58     private Scene scene;
 59     private Stage stage;
 60 
 61 
< prev index next >