Changeset 229 for trunk/EventBenchCore/src
- Timestamp:
- 10/03/11 23:06:06 (13 years ago)
- Location:
- trunk/EventBenchCore/src/de/ugoe/cs/eventbench/assertions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/assertions/FileEqualsReplay.java
r217 r229 6 6 /** 7 7 * <p> 8 * This class defines the fileEquals assertion type. This type does have two 9 * parameters, actualFile and expectedFile. 8 * This class defines the replay for file equals assertions. 10 9 * </p> 11 10 * 12 * @author jeffrey.hall 13 * @version 1.0 14 * 11 * @author Jeffrey Hall, Steffen Herbold 12 * @version 2.0 15 13 */ 16 14 public class FileEqualsReplay implements IReplayable { … … 27 25 28 26 /** 27 * <p> 29 28 * Id for object serialization. 29 * </p> 30 30 */ 31 31 private static final long serialVersionUID = 1L; 32 32 33 33 /** 34 * <p> 35 * Constructor. Creates a new FileEqualsReplay. 36 * </p> 34 37 * 38 * @param expectedFile 39 * name and path of the expected file 35 40 * @param actualFile 36 * The file that should be equal to expectedFile.41 * name and path of the actual file 37 42 */ 38 public void setActualFile(String actualFile) { 43 public FileEqualsReplay(String expectedFile, String actualFile) { 44 this.expectedFile = expectedFile; 39 45 this.actualFile = actualFile; 40 46 } 41 47 42 /** 43 * @param exptectedFile 44 * The file that is used as the reference. 45 */ 46 public void setExpectedFile(String expectedFile) { 47 this.expectedFile = expectedFile; 48 } 49 50 /** 51 * Returns the string that has to be written to the replay file. 48 /* 49 * (non-Javadoc) 50 * 51 * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() 52 52 */ 53 53 public String getReplay() { … … 64 64 } 65 65 66 /** 67 * No target used by fileEquals. 66 /* 67 * (non-Javadoc) 68 * 69 * @see de.ugoe.cs.eventbench.data.IReplayable#getTarget() 68 70 */ 71 @Override 69 72 public String getTarget() { 70 73 return "targetNotUsed"; -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/assertions/TextEqualsReplay.java
r218 r229 6 6 /** 7 7 * <p> 8 * This class defines the textEquals assertion type. This type does have two 9 * parameters, expectedValue and target. 8 * This class defines the replay for a textEquals assertion. 10 9 * </p> 11 10 * 12 * @author jeffrey.hall 13 * @version 1.0 14 * 11 * @author Jeffrey Hall, Steffen Herbold 12 * @version 2.0 15 13 */ 16 14 public class TextEqualsReplay implements IReplayable { 17 15 18 16 /** 19 * The reference value which is compared to the targets text. 17 * <p> 18 * Reference value which is compared to the targets text. 19 * </p> 20 20 */ 21 private String expectedValue = null;21 private String expectedValue; 22 22 23 23 /** 24 * The window which text is compared to expectedValue. 24 * <p> 25 * Target to which the text is compared. 26 * </p> 25 27 */ 26 private String target = null;28 private String target; 27 29 28 30 /** 31 * <p> 29 32 * Id for object serialization. 33 * </p> 30 34 */ 31 35 private static final long serialVersionUID = 1L; 32 36 33 /** 34 * @param expectedValue 35 * The reference value which is compared to the targets text. 36 */ 37 public void setExpectedValue(String expectedValue) { 37 public TextEqualsReplay(String expectedValue, String target) { 38 38 this.expectedValue = expectedValue; 39 }40 41 /**42 * @param target43 * The window which text is compared to expectedValue.44 */45 public void setTarget(String target) {46 39 this.target = target; 47 40 } 48 41 49 /** 50 * Returns the string that has to be written to the replay file. 42 /* 43 * (non-Javadoc) 44 * 45 * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() 51 46 */ 47 @Override 52 48 public String getReplay() { 53 49 … … 69 65 } 70 66 71 /** 72 * Returns the target window. 67 /* 68 * (non-Javadoc) 69 * 70 * @see de.ugoe.cs.eventbench.data.IReplayable#getTarget() 73 71 */ 72 @Override 74 73 public String getTarget() { 75 74 return target;
Note: See TracChangeset
for help on using the changeset viewer.