This file contains 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>org.javafxdata</groupId> | |
<artifactId>datafx-core</artifactId> | |
<version>8.0</version> | |
</dependency> | |
</dependencies> |
This file contains 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
ProcessChain.create(). | |
addRunnableInPlatformThread(() -> blockUI()). | |
addSupplierInExecutor(() -> loadFromServer()). | |
addConsumerInPlatformThread(d -> updateUI(d)). | |
onException(e -> handleException(e)). | |
withFinal(() -> unblockUI()). | |
run(); |
This file contains 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
Runnable backgroundRunnable = () -> { | |
try { | |
data = loadFromServer(); | |
Platform.runLater(() -> { | |
updateUI(data); | |
}); | |
} catch(Exception e) { | |
Platform.runLater(() -> { | |
handleException(e); | |
}); |
This file contains 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
ProcessChain.create(). | |
addRunnableInPlatformThread(() -> blockUI()). | |
addSupplierInExecutor(() -> loadFromServer()). | |
addConsumerInPlatformThread(d -> updateUI(d)). | |
onException(e -> handleException(e)). | |
withFinal(() -> unblockUI()). | |
run(); |
This file contains 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
@Test | |
public void checkSearchResult() { | |
new SearchView(this).search("Rise Against").assertContainsAlbum("The Black Market"); | |
} | |
@Test | |
public void checkTrackCount() { | |
new SearchView(this).search("Rise Against").openAlbum("The Black Market").checkTrackCountOfSelectedAlbum(12); | |
} |
This file contains 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
public class AlbumOverviewView extends ViewObject { | |
public AlbumDetailView openAlbum(String name) { | |
click((Text t) -> t.getText().contains(name)); | |
return new AlbumDetailView(getTestHandler()); | |
} | |
public AlbumOverviewView checkAlbumCount(int count) { | |
assertEquals(count, getList().size()); | |
return this; |
This file contains 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
click("#user-field").type("steve"); | |
click("#password-field").type("duke4ever"); | |
click("#login-button"); | |
click("#menu-button"); | |
click("#action-35"); | |
click("#tab-5"); | |
click("#next"); | |
click("#next"); | |
click("#next"); | |
click("#details"); |
This file contains 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
click(".text-field").type("steve"); | |
click(".password-field").type("duke4ever"); | |
click(".button:default"); | |
assertNodeExists( ".dialog" ); |
This file contains 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
#myButton { | |
-fx-icon: "fa fa-pencil"; | |
} |
This file contains 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
#myButton { | |
-fx-icon-text: "\uf0a9"; | |
} |
NewerOlder