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

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

        EditApplicant editApplicant = new EditApplicant(INDEX_FIRST_PERSON,
                new EditApplicantDescriptorBuilder()
                        .withDateApplied(VALID_DATE_TWO).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 same as the Date Applied,
     * this should be possible as an applicant may have applied and got an interview on the same day.
     */
Edit Interview Date to be same as the Date Applied,
this should be possible as an applicant may have applied and got an interview on the same day.
Edit Interview Date to be same as the Date Applied this should be possible as an applicant may have applied and got an interview on the same day .
@Test
    public void execute_dateAppliedSameAsInterviewDate_success() {
        Applicant firstApplicant = model.getFilteredApplicantList().get(INDEX_FIRST_PERSON.getZeroBased());
        Applicant editedApplicant = new ApplicantBuilder(firstApplicant)
                .withDateApplied(VALID_DATE_TWO).withInterviewDate(VALID_DATE_TWO).build();
        EditApplicant editApplicant = new EditApplicant(INDEX_FIRST_PERSON,
                new EditApplicantDescriptorBuilder()
                        .withDateApplied(VALID_DATE_TWO).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_dateAppliedSameAsInterviewDate_success ( ) { Applicant firstApplicant = model . getFilteredApplicantList ( ) . get ( INDEX_FIRST_PERSON . getZeroBased ( ) ) ; Applicant editedApplicant = new ApplicantBuilder ( firstApplicant ) . withDateApplied ( VALID_DATE_TWO ) . withInterviewDate ( VALID_DATE_TWO ) . build ( ) ; EditApplicant editApplicant = new EditApplicant ( INDEX_FIRST_PERSON , new EditApplicantDescriptorBuilder ( ) . withDateApplied ( VALID_DATE_TWO ) . 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 same as the Date Applied,
 this should be possible as an applicant may have applied and got an interview on the same day.
Edit Interview Date to be same as the Date Applied this should be possible as an applicant may have applied and got an interview on the same day .