@Test public void shouldCopyAcrossFromQuestionToExplanation() throws Exception { String substitutedExplanationText = exampleQuestion.getSubstitutedExplanationText(); assertEquals("Explanation stuff to copy end of explanation", substitutedExplanationText); }
public String getSubstitutedExplanationText() { return substituteExplanationText(questionText, explanationText); }
AbstractQuestion implements Serializable, Question { public String getSubstitutedExplanationText() { return substituteExplanationText(questionText, explanationText); } }
AbstractQuestion implements Serializable, Question { public String getSubstitutedExplanationText() { return substituteExplanationText(questionText, explanationText); } protected  AbstractQuestion(String questionText, String explanationText); protected  AbstractQuestion(); }
AbstractQuestion implements Serializable, Question { public String getSubstitutedExplanationText() { return substituteExplanationText(questionText, explanationText); } protected  AbstractQuestion(String questionText, String explanationText); protected  AbstractQuestion(); static String removeCopyToExplanationBlocks(String questionText); String getQuestionText(); String getSubstitutedQuestionText(); String getExplanationText(); abstract String getQuestionTypeName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); String getSubstitutedExplanationText(); static String substituteExplanationText(String questionText, String explanationText); }
AbstractQuestion implements Serializable, Question { public String getSubstitutedExplanationText() { return substituteExplanationText(questionText, explanationText); } protected  AbstractQuestion(String questionText, String explanationText); protected  AbstractQuestion(); static String removeCopyToExplanationBlocks(String questionText); String getQuestionText(); String getSubstitutedQuestionText(); String getExplanationText(); abstract String getQuestionTypeName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); String getSubstitutedExplanationText(); static String substituteExplanationText(String questionText, String explanationText);  }