This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.11</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hamcrest</groupId> | |
| <artifactId>hamcrest-library</artifactId> | |
| <version>1.3</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package helloworld; | |
| import javafx.application.Application; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.stage.Stage; | |
| // http://docs.oracle.com/javase/8/javafx/get-started-tutorial/hello_world.htm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://blogs.oracle.com/randystuph/entry/injecting_jndi_datasources_for_junit | |
| @BeforeClass | |
| public static void setUpClass() throws Exception { | |
| // rcarver - setup the jndi context and the datasource | |
| try { | |
| // Create initial context | |
| System.setProperty(Context.INITIAL_CONTEXT_FACTORY, | |
| "org.apache.naming.java.javaURLContextFactory"); | |
| System.setProperty(Context.URL_PKG_PREFIXES, |