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
| #myButton { | |
| -fx-icon-text: "\uf0a9"; | |
| } |
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
| public interface Media { | |
| StringProperty titleProperty(); | |
| StringProperty descriptionProperty(); | |
| ObjectProperty<Image> imageProperty(); | |
| } |
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
| public class Album implements Media { | |
| private String artist; | |
| private String coverUrl; | |
| private String name; | |
| //getter & setter |
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
| <dependency> | |
| <groupId>com.guigarage</groupId> | |
| <artifactId>ui-basics</artifactId> | |
| <version>X.Y</version> | |
| </dependency> |
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
| button.setText('\uf040' + ""); | |
| // \uf040 is the unicode char for the icon as defines here: http://fortawesome.github.io/Font-Awesome/icon/pencil/ |
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
| IconifiedButtonSkin.addStyle(myButton); |
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
| 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 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
| @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 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
| 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 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
| #my-button { | |
| -fx-font-family: "Arial"; | |
| -fx-font-size: 24; | |
| } |
OlderNewer