package de.ugoe.cs.eventbench.assertions; import de.ugoe.cs.eventbench.data.IReplayable; import de.ugoe.cs.util.StringTools; /** *
* This class defines the replay for file equals assertions. *
* * @author Jeffrey Hall, Steffen Herbold * @version 2.0 */ public class FileEqualsReplay implements IReplayable { /** ** The file that should be equal to expectedFile. *
*/ String actualFile = null; /** ** The file that is used as the reference. *
*/ String expectedFile = null; /** ** Id for object serialization. *
*/ private static final long serialVersionUID = 1L; /** ** Constructor. Creates a new FileEqualsReplay. *
* * @param expectedFile * name and path of the expected file * @param actualFile * name and path of the actual file */ public FileEqualsReplay(String expectedFile, String actualFile) { this.expectedFile = expectedFile; this.actualFile = actualFile; } /* * (non-Javadoc) * * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() */ public String getReplay() { actualFile = StringTools.xmlEntityReplacement(actualFile); expectedFile = StringTools.xmlEntityReplacement(expectedFile); StringBuilder currentMsgStr = new StringBuilder(800); currentMsgStr.append("