Buggy code:
assertNotNull ( frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , fr . recipientEmail ) ) ; ______TS ( "Successful<seq2seq4repair_space>case:<seq2seq4repair_space>const<seq2seq4repair_space>sum:<seq2seq4repair_space>question<seq2seq4repair_space>skipped" ) ; submissionParams = new String [ ] { ( ParamsNames . FEEDBACK_QUESTION_RESPONSETOTAL ) + "-1" , "1" , ( ParamsNames . FEEDBACK_RESPONSE_ID ) + "-1-0" , fr . getId ( ) , ParamsNames . FEEDBACK_SESSION_NAME , fr . feedbackSessionName , ParamsNames . COURSE_ID , fr . courseId , ( ParamsNames . FEEDBACK_QUESTION_ID ) + "-1" , fr . feedbackQuestionId , ( ParamsNames . FEEDBACK_RESPONSE_RECIPIENT ) + "-1-0" , fr . recipientEmail , ( ParamsNames . FEEDBACK_QUESTION_TYPE ) + "-1" , fr . feedbackQuestionType . toString ( ) , ( ParamsNames . FEEDBACK_RESPONSE_TEXT ) + "-1-0" , "" } ; a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; assertFalse ( r . isError ) ; assertEquals ( "All<seq2seq4repair_space>responses<seq2seq4repair_space>submitted<seq2seq4repair_space>succesfully!" , r . getStatusMessage ( ) ) ; assertEquals ( "//page//studentHomePage?error=false&user=FSQTT.student1InCourse1" , r . getDestinationWithParams ( ) ) ; assertNull ( frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , fr . recipientEmail ) ) ; ______TS ( "Successful<seq2seq4repair_space>case:<seq2seq4repair_space>contrib<seq2seq4repair_space>qn:<seq2seq4repair_space>typical<seq2seq4repair_space>case" ) ; fq = fqDb . getFeedbackQuestion ( "CONTRIB<seq2seq4repair_space>Session" , "FSQTT.idOfTypicalCourse1" , 1 ) ; assertNotNull ( "Feedback<seq2seq4repair_space>question<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>database" , fq ) ; fr = dataBundle . feedbackResponses . get ( "response1ForQ1S5C1" ) ; fr = frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , fr . recipientEmail ) ; assertNotNull ( "Feedback<seq2seq4repair_space>response<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>database" , fr ) ; student1InCourse1 = dataBundle . students . get ( "student1InCourse1" ) ; gaeSimulation . loginAsStudent ( student1InCourse1 . googleId ) ; submissionParams = new String [ ] { ( ParamsNames . FEEDBACK_QUESTION_RESPONSETOTAL ) + "-1" , "1" , ( ParamsNames . FEEDBACK_RESPONSE_ID ) + "-1-0" , fr . getId ( ) , ParamsNames . FEEDBACK_SESSION_NAME , fr . feedbackSessionName , ParamsNames . COURSE_ID , fr . courseId , ( ParamsNames . FEEDBACK_QUESTION_ID ) + "-1" , fr . feedbackQuestionId , ( ParamsNames . FEEDBACK_RESPONSE_RECIPIENT ) + "-1-0" , fr . recipientEmail , ( ParamsNames . FEEDBACK_QUESTION_TYPE ) + "-1" , fr . feedbackQuestionType . toString ( ) , ( ParamsNames . FEEDBACK_RESPONSE_TEXT ) + "-1-0" , "150" } ; a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; assertEquals ( "All<seq2seq4repair_space>responses<seq2seq4repair_space>submitted<seq2seq4repair_space>succesfully!" , r . getStatusMessage ( ) ) ; assertFalse ( r . isError ) ; assertEquals ( ( ( "//page//studentHomePage?error=" + ( r . isError ) ) + "&user=FSQTT.student1InCourse1" ) , r . getDestinationWithParams ( ) ) ; assertNotNull ( frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , fr . recipientEmail ) ) ; ______TS ( "Successful<seq2seq4repair_space>case:<seq2seq4repair_space>contrib<seq2seq4repair_space>qn:<seq2seq4repair_space>question<seq2seq4repair_space>skipped" ) ; submissionParams = new String [ ] { ( ParamsNames . FEEDBACK_QUESTION_RESPONSETOTAL ) + "-1" , "1" , ( ParamsNames . FEEDBACK_RESPONSE_ID ) + "-1-0" , fr . getId ( ) , ParamsNames . FEEDBACK_SESSION_NAME , fr . feedbackSessionName , ParamsNames . COURSE_ID , fr . courseId , ( ParamsNames . FEEDBACK_QUESTION_ID ) + "-1" , fr . feedbackQuestionId , ( ParamsNames . FEEDBACK_RESPONSE_RECIPIENT ) + "-1-0" , fr . recipientEmail , ( ParamsNames . FEEDBACK_QUESTION_TYPE ) + "-1" , fr . feedbackQuestionType . toString ( ) , ( ParamsNames . FEEDBACK_RESPONSE_TEXT ) + "-1-0" , "" } ; a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; assertFalse ( r . isError ) ; assertEquals ( "All<seq2seq4repair_space>responses<seq2seq4repair_space>submitted<seq2seq4repair_space>succesfully!" , r . getStatusMessage ( ) ) ; assertEquals ( "//page//studentHomePage?error=false&user=FSQTT.student1InCourse1" , r . getDestinationWithParams ( ) ) ; assertNull ( frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , fr . recipientEmail ) ) ; ______TS ( "Unsuccessful<seq2seq4repair_space>case:<seq2seq4repair_space>test<seq2seq4repair_space>empty<seq2seq4repair_space>feedback<seq2seq4repair_space>session<seq2seq4repair_space>name<seq2seq4repair_space>parameter" ) ; submissionParams = new String [ ] { ParamsNames . COURSE_ID , dataBundle . feedbackResponses . get ( "response1ForQ1S1C1" ) . courseId } ; try { a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; signalFailureToDetectException ( "Did<seq2seq4repair_space>not<seq2seq4repair_space>detect<seq2seq4repair_space>that<seq2seq4repair_space>parameters<seq2seq4repair_space>are<seq2seq4repair_space>null." ) ; } catch ( NullPostParameterException e ) { assertEquals ( String . format ( NULL_POST_PARAMETER , FEEDBACK_SESSION_NAME ) , e . getMessage ( ) ) ; } ______TS ( "Unsuccessful<seq2seq4repair_space>case:<seq2seq4repair_space>test<seq2seq4repair_space>empty<seq2seq4repair_space>course<seq2seq4repair_space>id<seq2seq4repair_space>parameter" ) ; submissionParams = new String [ ] { ParamsNames . FEEDBACK_SESSION_NAME , dataBundle . feedbackResponses . get ( "response1ForQ1S1C1" ) . feedbackSessionName } ; try { a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; signalFailureToDetectException ( "Did<seq2seq4repair_space>not<seq2seq4repair_space>detect<seq2seq4repair_space>that<seq2seq4repair_space>parameters<seq2seq4repair_space>are<seq2seq4repair_space>null." ) ; } catch ( NullPostParameterException e ) { assertEquals ( String . format ( NULL_POST_PARAMETER , COURSE_ID ) , e . getMessage ( ) ) ; } ______TS ( "Unsuccessful<seq2seq4repair_space>case:<seq2seq4repair_space>modified<seq2seq4repair_space>recipient<seq2seq4repair_space>list<seq2seq4repair_space>to<seq2seq4repair_space>invalid<seq2seq4repair_space>recipient" ) ; submissionParams = new String [ ] { ( ParamsNames . FEEDBACK_QUESTION_RESPONSETOTAL ) + "-1" , "1" , ( ParamsNames . FEEDBACK_RESPONSE_ID ) + "-1-0" , fr . getId ( ) , ParamsNames . FEEDBACK_SESSION_NAME , fr . feedbackSessionName , ParamsNames . COURSE_ID , fr . courseId , ( ParamsNames . FEEDBACK_QUESTION_ID ) + "-1" , fr . feedbackQuestionId , ( ParamsNames . FEEDBACK_RESPONSE_RECIPIENT ) + "-1-0" , "invalid<seq2seq4repair_space>recipient" , ( ParamsNames . FEEDBACK_QUESTION_TYPE ) + "-1" , fr . feedbackQuestionType . toString ( ) , ( ParamsNames . FEEDBACK_RESPONSE_TEXT ) + "-1-0" , "" } ; a = getAction ( submissionParams ) ; r = ( ( RedirectResult ) ( a . executeAndPostProcess ( ) ) ) ; assertTrue ( r . isError ) ; <START_BUG> assertEquals ( "//page//studentHomePage?error=true&user=FSQTT.student1InCourse1" , r . getDestinationWithParams ( ) ) ; <END_BUG> assertNull ( frDb . getFeedbackResponse ( fq . getId ( ) , fr . giverEmail , "invalid<seq2seq4repair_space>recipient" ) ) ; } @ Test public void testGracePeriodExecuteAndPostProcess ( ) throws Exception { } private StudentFeedbackSubmissionEditSaveAction getAction ( String ... params ) throws Exception { } }

Fix:
assertEquals ( "//page//studentFeedbackSubmissionEditPage?studentemail=student1InCourse1%40gmail.tmt&error=true&user=FSQTT.student1InCourse1&courseid=FSQTT.idOfTypicalCourse1&fsname=CONTRIB+Session" , r . getDestinationWithParams ( ) ) ;