jchildress
04/24/2019, 5:30 PMabhinay
04/25/2019, 6:40 AMjdk10
branch.edvin
04/25/2019, 7:03 AMamanda.hinchman-dominguez
04/25/2019, 8:28 PMGarouDan
04/25/2019, 9:30 PMamanda.hinchman-dominguez
04/25/2019, 10:36 PMamanda.hinchman-dominguez
04/25/2019, 11:16 PMNikky
04/26/2019, 7:12 AMedvin
04/26/2019, 12:08 PMamanda.hinchman-dominguez
04/27/2019, 4:21 AMedvin
04/27/2019, 8:00 AMron
04/27/2019, 8:18 AMcarlw
04/27/2019, 1:23 PMdarkmoon_uk
04/29/2019, 10:20 PMabhinay
05/02/2019, 6:26 AMmodule-info.java
file. You just need to add the JavaFX modules to the module path.edvin
05/02/2019, 9:56 PMCarlton Whitehead
05/02/2019, 10:45 PMStephane M
05/06/2019, 1:31 PMromainbsl
05/08/2019, 2:43 PMStephane M
05/09/2019, 2:04 PMamanda.hinchman-dominguez
05/09/2019, 2:27 PMamanda.hinchman-dominguez
05/10/2019, 12:44 AMianbrandt
05/12/2019, 4:50 AMView
with TestFX. I'm not clear on the current way to setup the view properly in a JUnit 5 test. Any help would be appreciated.
@ExtendWith(ApplicationExtension::class)
class MyViewTest {
@Start
fun start(stage: Stage) {
stage.scene = MyView().root.scene
stage.show()
}
@Test
fun `test my view`(robot: FxRobot) {
println(robot.lookup(".canvas").queryAs(Canvas::class.java).width)
}
}
class MyView : View() {
override val root = group {
canvas(800.0, 600.0)
}
}
java.lang.NullPointerException
at org.testfx.util.NodeQueryUtils.fromWindow(NodeQueryUtils.java:168)
[...]
at org.testfx.util.NodeQueryUtils.rootsOfWindows(NodeQueryUtils.java:56)
at org.testfx.service.finder.impl.NodeFinderImpl.rootsOfWindows(NodeFinderImpl.java:94)
at org.testfx.service.finder.impl.NodeFinderImpl.fromAll(NodeFinderImpl.java:59)
at org.testfx.service.finder.impl.NodeFinderImpl.lookup(NodeFinderImpl.java:44)
at org.testfx.api.FxRobot.lookup(FxRobot.java:186)
Jheruty
05/20/2019, 1:23 AMushort
05/22/2019, 4:44 PMalex
05/23/2019, 8:02 AMStandardPaths
provides the utility class with the most common system- and user- related directories.
Features
• All major distributions: Windows, Linux, MacOS (not yet, no access to MacOS right now)
• Ease of use
• NIO-based
• Lightweight (~10kb)
• JDK8+ support
Usage:
Path home = StandardPaths.home();
Path cache = StandardPaths.cache();
Someone mentioned AppDirs
library few weeks ago, I thought about contributing (few advanced methods of retrieving paths with WinAPI), but AppDirs
is JDK6+ based with WinXP support, while I'm trying to utilize JDK7 NIO as much as I could (e.g. Path
better than File
better than String
) with modern OSes in mind. API difference:
Path home = StandardPaths.dataLocal().resolve("<author>/<app>/<ver>")
vs
Path home = Paths.get(AppDirsFactory.getInstance().getUserDataDir("<app>", "<ver>", "<author>", true)));
ianbrandt
05/25/2019, 11:06 PM@Start
method of my test, but I'm not sure what else needs to be done. Any help would be most appreciated.
https://github.com/ianbrandt/tornadofx-test/blob/master/src/test/kotlin/com/ianbrandt/test/MyViewTest.ktCarlton Whitehead
05/26/2019, 10:51 AMamanda.hinchman-dominguez
05/27/2019, 4:29 AMnapperley
05/28/2019, 4:34 AMnapperley
05/28/2019, 4:34 AMRuckus
05/28/2019, 1:37 PM