src/test/java/systemtests/EditCommandSystemTest.java
private void assertCommandSuccess(String command, Model expectedModel, String expectedResultMessage,
            Index expectedSelectedCardIndex) {
        executeCommand(command);
        assertApplicationDisplaysExpected("", expectedResultMessage, expectedModel);
        assertCommandBoxShowsDefaultStyle();
        assertStatusBarUnchangedExceptSyncStatus();
    }
/**
     * Executes {@code command} and in addition,<br>
     * 1. Asserts that the command box displays an empty string.<br>
     * 2. Asserts that the result display box displays {@code expectedResultMessage}.<br>
     * 3. Asserts that the model related components equal to {@code expectedModel}.<br>
     * 4. Asserts that the browser url and selected card update accordingly depending on the card at
     * {@code expectedSelectedCardIndex}.<br>
     * 5. Asserts that the status bar's sync status changes.<br>
     * 6. Asserts that the command box has the default style class.<br>
     * Verifications 1 to 3 are performed by
     * {@code AddressBookSystemTest#assertApplicationDisplaysExpected(String, String, Model)}.<br>
     * @see AddressBookSystemTest#assertApplicationDisplaysExpected(String, String, Model)
     * @see AddressBookSystemTest#assertSelectedCardChanged(Index)
     */
Executes  command and in addition,
1. Asserts that the command box displays an empty string.
2. Asserts that the result display box displays  expectedResultMessage.
3. Asserts that the model related components equal to  expectedModel.
4. Asserts that the browser url and selected card update accordingly depending on the card at
expectedSelectedCardIndex.
5. Asserts that the status bar's sync status changes.
6. Asserts that the command box has the default style class.
Verifications 1 to 3 are performed by
AddressBookSystemTest#assertApplicationDisplaysExpected(String, String, Model).
@see AddressBookSystemTest#assertApplicationDisplaysExpected(String, String, Model)
@see AddressBookSystemTest#assertSelectedCardChanged(Index)
Executes command and in addition 1 . Asserts that the command box displays an empty string . 2 . Asserts that the result display box displays expectedResultMessage . 3 . Asserts that the model related components equal to expectedModel . 4 . Asserts that the browser url and selected card update accordingly depending on the card at expectedSelectedCardIndex . 5 . Asserts that the status bar ' s sync status changes . 6 . Asserts that the command box has the default style class . Verifications 1 to 3 are performed by AddressBookSystemTest#assertApplicationDisplaysExpected ( String String Model ) . @see AddressBookSystemTest#assertApplicationDisplaysExpected ( String String Model ) @see AddressBookSystemTest#assertSelectedCardChanged ( Index )
private void assertCommandSuccess(String command, Model expectedModel, String expectedResultMessage,
            Index expectedSelectedCardIndex) {
        executeCommand(command);
        assertApplicationDisplaysExpected("", expectedResultMessage, expectedModel);
        assertCommandBoxShowsDefaultStyle();
        assertStatusBarUnchangedExceptSyncStatus();
    }
private void assertCommandSuccess ( String command , Model expectedModel , String expectedResultMessage , Index expectedSelectedCardIndex ) { executeCommand ( command ) ; assertApplicationDisplaysExpected ( "" , expectedResultMessage , expectedModel ) ; assertCommandBoxShowsDefaultStyle ( ) ; assertStatusBarUnchangedExceptSyncStatus ( ) ; }
Executes {@code command} and in addition,<br>
 1.
Executes { @code command } and in addition <br > 1 .