src/test/java/systemtests/AddressBookSystemTest.java
private void assertApplicationStartingStateIsCorrect() {
        try {
            assertEquals("", getCommandBox().getInput());
            assertEquals("", getResultDisplay().getText());
            assertListMatching(getParcelListPanel(), getModel().getActiveList());
            assertEquals(MainApp.class.getResource(FXML_FILE_FOLDER + DEFAULT_PAGE), getBrowserPanel().getLoadedUrl());
            assertEquals("./" + testApp.getStorageSaveLocation(), getStatusBarFooter().getSaveLocation());
            assertEquals(SYNC_STATUS_INITIAL, getStatusBarFooter().getSyncStatus());
        } catch (Exception e) {
            throw new AssertionError("Starting state is wrong.", e);
        }
    }
/**
     * Asserts that the starting state of the application is correct.
     */
Asserts that the starting state of the application is correct.
Asserts that the starting state of the application is correct .
private void assertApplicationStartingStateIsCorrect() {
        try {
            assertEquals("", getCommandBox().getInput());
            assertEquals("", getResultDisplay().getText());
            assertListMatching(getParcelListPanel(), getModel().getActiveList());
            assertEquals(MainApp.class.getResource(FXML_FILE_FOLDER + DEFAULT_PAGE), getBrowserPanel().getLoadedUrl());
            assertEquals("./" + testApp.getStorageSaveLocation(), getStatusBarFooter().getSaveLocation());
            assertEquals(SYNC_STATUS_INITIAL, getStatusBarFooter().getSyncStatus());
        } catch (Exception e) {
            throw new AssertionError("Starting state is wrong.", e);
        }
    }
private void assertApplicationStartingStateIsCorrect ( ) { try { assertEquals ( "" , getCommandBox ( ) . getInput ( ) ) ; assertEquals ( "" , getResultDisplay ( ) . getText ( ) ) ; assertListMatching ( getParcelListPanel ( ) , getModel ( ) . getActiveList ( ) ) ; assertEquals ( MainApp . class . getResource ( FXML_FILE_FOLDER + DEFAULT_PAGE ) , getBrowserPanel ( ) . getLoadedUrl ( ) ) ; assertEquals ( "./" + testApp . getStorageSaveLocation ( ) , getStatusBarFooter ( ) . getSaveLocation ( ) ) ; assertEquals ( SYNC_STATUS_INITIAL , getStatusBarFooter ( ) . getSyncStatus ( ) ) ; } catch ( Exception e ) { throw new AssertionError ( "Starting state is wrong." , e ) ; } }
Asserts that the starting state of the application is correct.
Asserts that the starting state of the application is correct .