Source:
public void testToEntity() { FeedbackQuestionAttributes fqa = getNewFeedbackQuestionAttributes(); FeedbackQuestion expectedQuestion = new FeedbackQuestion(fqa.getFeedbackSessionName(), fqa.getCourseId(), fqa.getSerializedQuestionDetails(), fqa.getQuestionDescription(), fqa.getQuestionNumber(), fqa.getQuestionType(), fqa.getGiverType(), fqa.getRecipientType(), fqa.getNumberOfEntitiesToGiveFeedbackTo(), fqa.getShowResponsesTo(), fqa.showGiverNameTo, fqa.showRecipientNameTo); FeedbackQuestion actualQuestion = fqa.toEntity(); assertEquals(expectedQuestion.getFeedbackSessionName(), actualQuestion.getFeedbackSessionName()); assertEquals(expectedQuestion.getCourseId(), actualQuestion.getCourseId()); assertEquals(expectedQuestion.getQuestionDescription(), actualQuestion.getQuestionDescription()); assertEquals(expectedQuestion.getQuestionNumber(), actualQuestion.getQuestionNumber()); assertEquals(expectedQuestion.getQuestionType(), actualQuestion.getQuestionType()); assertEquals(expectedQuestion.getNumberOfEntitiesToGiveFeedbackTo(), actualQuestion.getNumberOfEntitiesToGiveFeedbackTo()); assertEquals(expectedQuestion.getQuestionMetaData(), actualQuestion.getQuestionMetaData()); assertEquals(expectedQuestion.getGiverType(), actualQuestion.getGiverType()); assertEquals(expectedQuestion.getRecipientType(), actualQuestion.getRecipientType()); assertEquals(expectedQuestion.getShowGiverNameTo(), actualQuestion.getShowGiverNameTo()); assertEquals(expectedQuestion.getShowRecipientNameTo(), actualQuestion.getShowRecipientNameTo()); assertEquals(expectedQuestion.getShowResponsesTo(), actualQuestion.getShowResponsesTo()); assertNotNull(expectedQuestion.getCreatedAt()); assertNotNull(actualQuestion.getCreatedAt()); assertNotNull(expectedQuestion.getUpdatedAt()); assertNotNull(actualQuestion.getUpdatedAt()); assertEquals(expectedQuestion.getCreatedAt(), actualQuestion.getCreatedAt()); assertEquals(expectedQuestion.getUpdatedAt(), actualQuestion.getUpdatedAt()); }

Target:
public void testToEntity() { FeedbackQuestionAttributes fqa = getNewFeedbackQuestionAttributes(); FeedbackQuestion expectedQuestion = new FeedbackQuestion(fqa.getFeedbackSessionName(), fqa.getCourseId(), fqa.getSerializedQuestionDetails(), fqa.getQuestionDescription(), fqa.getQuestionNumber(), fqa.getQuestionType(), fqa.getGiverType(), fqa.getRecipientType(), fqa.getNumberOfEntitiesToGiveFeedbackTo(), fqa.getShowResponsesTo(), fqa.showGiverNameTo, fqa.showRecipientNameTo); FeedbackQuestion actualQuestion = fqa.toEntity(); assertEquals(expectedQuestion.getFeedbackSessionName(), actualQuestion.getFeedbackSessionName()); assertEquals(expectedQuestion.getCourseId(), actualQuestion.getCourseId()); assertEquals(expectedQuestion.getQuestionDescription(), actualQuestion.getQuestionDescription()); assertEquals(expectedQuestion.getQuestionNumber(), actualQuestion.getQuestionNumber()); assertEquals(expectedQuestion.getQuestionType(), actualQuestion.getQuestionType()); assertEquals(expectedQuestion.getNumberOfEntitiesToGiveFeedbackTo(), actualQuestion.getNumberOfEntitiesToGiveFeedbackTo()); assertEquals(expectedQuestion.getQuestionMetaData(), actualQuestion.getQuestionMetaData()); assertEquals(expectedQuestion.getGiverType(), actualQuestion.getGiverType()); assertEquals(expectedQuestion.getRecipientType(), actualQuestion.getRecipientType()); assertEquals(expectedQuestion.getShowGiverNameTo(), actualQuestion.getShowGiverNameTo()); assertEquals(expectedQuestion.getShowRecipientNameTo(), actualQuestion.getShowRecipientNameTo()); assertEquals(expectedQuestion.getShowResponsesTo(), actualQuestion.getShowResponsesTo()); assertNotNull(actualQuestion.getCreatedAt()); assertNotNull(actualQuestion.getUpdatedAt()); }