Skip to content

Commit

Permalink
Renamed Application class and merged some UI Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsorin committed May 26, 2021
1 parent 25fdeba commit 072a948
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/Textn.zip
asset_name: Textn-${{ github.ref }}.zip
asset_path: ./target/Aramis.zip
asset_name: Aramis-${{ github.ref }}.zip
asset_content_type: application/zip
4 changes: 2 additions & 2 deletions src/main/java/com/github/nsorin/aramis/TextEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import com.github.nsorin.aramis.injection.DependencyProvider;
import com.github.nsorin.aramis.service.FileManager;
import com.github.nsorin.aramis.service.FileManagerFilesystem;
import com.github.nsorin.aramis.ui.TextnApplication;
import com.github.nsorin.aramis.ui.TextEditorApplication;
import com.github.nsorin.aramis.ui.service.FileChooserSelector;
import com.github.nsorin.aramis.ui.service.FileSelector;
import javafx.application.Application;

public class TextEditor {
public static void main(String[] args) {
provideDependencies();
Application.launch(TextnApplication.class, args);
Application.launch(TextEditorApplication.class, args);
}

public static void provideDependencies() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import java.io.IOException;
import java.util.Objects;

public class TextnApplication extends Application {
public class TextEditorApplication extends Application {

private static final String STAGE_TITLE = "Textn Text Editor";
private static final String STAGE_TITLE = "Aramis Text Editor";
private static final String LAYOUT_FXML_PATH = "layout.fxml";

public static final int SCENE_WIDTH = 300;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void runAppToTests() throws Exception {
TextEditor.provideDependencies();
provideDependencyStubs();
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(TextnApplication::new);
FxToolkit.setupApplication(TextEditorApplication::new);
FxToolkit.showStage();
WaitForAsyncUtils.waitForFxEvents(100);
}
Expand All @@ -50,19 +50,12 @@ public void start(Stage primaryStage) {
}

@Test
void hasToolBarAndTextArea() {
void startsCorrectly() {
verifyThat(".tool-bar", isVisible());
verifyThat("#inputArea", isVisible());
}

@Test
void startsWithEmptyText() {
verifyThat("#inputArea", hasText(""));
}

@Test
void focusesTextAreaOnStart() {
verifyThat("#inputArea", isFocused());

}

@Test
Expand Down

0 comments on commit 072a948

Please sign in to comment.