- Timestamp:
- 10/03/11 23:06:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.