src/test/java/seedu/address/logic/commands/job/EditJobTest.java
@Test
    public void execute_invalidJobIndexFilteredList_failure() {
        showJobAtIndex(model, INDEX_FIRST_PERSON);
        Index outOfBoundIndex = INDEX_SECOND_PERSON;
        // ensures that outOfBoundIndex is still in bounds of address book list
        assertTrue(outOfBoundIndex.getZeroBased() < model.getAddressBook().getJobList().size());

        EditJob editCommand = new EditJob(outOfBoundIndex,
                new EditJobDescriptorBuilder().withJobTitle(VALID_JOB_TITLE_DATA_ANALYSIS).build());

        assertCommandFailure(editCommand, model,
                String.format(MESSAGE_INVALID_INDEX, EditJob.MESSAGE_USAGE));
    }
/**
     * Edit filtered list where index is larger than size of filtered list,
     * but smaller than size of address book
     */
Edit filtered list where index is larger than size of filtered list,
but smaller than size of address book
Edit filtered list where index is larger than size of filtered list but smaller than size of address book
@Test
    public void execute_invalidJobIndexFilteredList_failure() {
        showJobAtIndex(model, INDEX_FIRST_PERSON);
        Index outOfBoundIndex = INDEX_SECOND_PERSON;
        assertTrue(outOfBoundIndex.getZeroBased() < model.getAddressBook().getJobList().size());
        EditJob editCommand = new EditJob(outOfBoundIndex,
                new EditJobDescriptorBuilder().withJobTitle(VALID_JOB_TITLE_DATA_ANALYSIS).build());
        assertCommandFailure(editCommand, model,
                String.format(MESSAGE_INVALID_INDEX, EditJob.MESSAGE_USAGE));
    }
@ Test public void execute_invalidJobIndexFilteredList_failure ( ) { showJobAtIndex ( model , INDEX_FIRST_PERSON ) ; Index outOfBoundIndex = INDEX_SECOND_PERSON ; assertTrue ( outOfBoundIndex . getZeroBased ( ) < model . getAddressBook ( ) . getJobList ( ) . size ( ) ) ; EditJob editCommand = new EditJob ( outOfBoundIndex , new EditJobDescriptorBuilder ( ) . withJobTitle ( VALID_JOB_TITLE_DATA_ANALYSIS ) . build ( ) ) ; assertCommandFailure ( editCommand , model , String . format ( MESSAGE_INVALID_INDEX , EditJob . MESSAGE_USAGE ) ) ; }
Edit filtered list where index is larger than size of filtered list,
 but smaller than size of address book
Edit filtered list where index is larger than size of filtered list but smaller than size of address book
// ensures that outOfBoundIndex is still in bounds of address book list