src/test/java/seedu/address/logic/commands/applicant/EditApplicantTest.java
@Test
    public void execute_dateAppliedEarlierThanInterviewDate_success() {
        Applicant firstApplicant = model.getFilteredApplicantList().get(INDEX_FIRST_PERSON.getZeroBased());

        Applicant editedApplicant = new ApplicantBuilder(firstApplicant)
                .withInterviewDate(VALID_DATE_TWO).build();

        EditApplicant editApplicant = new EditApplicant(INDEX_FIRST_PERSON,
                new EditApplicantDescriptorBuilder()
                        .withInterviewDate(VALID_DATE_TWO).build());

        String expectedMessage = String.format(EditApplicant.MESSAGE_EDIT_APPLICANT_SUCCESS, editedApplicant);

        Model expectedModel = new ModelManager(new AddressBook(model.getAddressBook()), new UserPrefs());
        expectedModel.setApplicant(firstApplicant, editedApplicant);

        assertCommandSuccess(editApplicant, model, expectedMessage, true, false, true, expectedModel);
    }
/**
     * Edit Interview Date to be later than the Date Applied,
     * this should be possible as an applicant must have applied first before getting an interview.
     */
Edit Interview Date to be later than the Date Applied,
this should be possible as an applicant must have applied first before getting an interview.
Edit Interview Date to be later than the Date Applied this should be possible as an applicant must have applied first before getting an interview .
@Test
    public void execute_dateAppliedEarlierThanInterviewDate_success() {
        Applicant firstApplicant = model.getFilteredApplicantList().get(INDEX_FIRST_PERSON.getZeroBased());
        Applicant editedApplicant = new ApplicantBuilder(firstApplicant)
                .withInterviewDate(VALID_DATE_TWO).build();
        EditApplicant editApplicant = new EditApplicant(INDEX_FIRST_PERSON,
                new EditApplicantDescriptorBuilder()
                        .withInterviewDate(VALID_DATE_TWO).build());
        String expectedMessage = String.format(EditApplicant.MESSAGE_EDIT_APPLICANT_SUCCESS, editedApplicant);
        Model expectedModel = new ModelManager(new AddressBook(model.getAddressBook()), new UserPrefs());
        expectedModel.setApplicant(firstApplicant, editedApplicant);
        assertCommandSuccess(editApplicant, model, expectedMessage, true, false, true, expectedModel);
    }
@ Test public void execute_dateAppliedEarlierThanInterviewDate_success ( ) { Applicant firstApplicant = model . getFilteredApplicantList ( ) . get ( INDEX_FIRST_PERSON . getZeroBased ( ) ) ; Applicant editedApplicant = new ApplicantBuilder ( firstApplicant ) . withInterviewDate ( VALID_DATE_TWO ) . build ( ) ; EditApplicant editApplicant = new EditApplicant ( INDEX_FIRST_PERSON , new EditApplicantDescriptorBuilder ( ) . withInterviewDate ( VALID_DATE_TWO ) . build ( ) ) ; String expectedMessage = String . format ( EditApplicant . MESSAGE_EDIT_APPLICANT_SUCCESS , editedApplicant ) ; Model expectedModel = new ModelManager ( new AddressBook ( model . getAddressBook ( ) ) , new UserPrefs ( ) ) ; expectedModel . setApplicant ( firstApplicant , editedApplicant ) ; assertCommandSuccess ( editApplicant , model , expectedMessage , true , false , true , expectedModel ) ; }
Edit Interview Date to be later than the Date Applied,
 this should be possible as an applicant must have applied first before getting an interview.
Edit Interview Date to be later than the Date Applied this should be possible as an applicant must have applied first before getting an interview .