Changeset 218 for trunk/EventBenchCore/src/de
- Timestamp:
- 09/28/11 11:55:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/assertions/TextEqualsReplay.java
r150 r218 4 4 import de.ugoe.cs.util.StringTools; 5 5 6 /** 7 * <p> 8 * This class defines the textEquals assertion type. This type does have two 9 * parameters, expectedValue and target. 10 * </p> 11 * 12 * @author jeffrey.hall 13 * @version 1.0 14 * 15 */ 6 16 public class TextEqualsReplay implements IReplayable { 7 17 18 /** 19 * The reference value which is compared to the targets text. 20 */ 8 21 private String expectedValue = null; 22 23 /** 24 * The window which text is compared to expectedValue. 25 */ 9 26 private String target = null; 27 10 28 /** 11 29 * Id for object serialization. … … 13 31 private static final long serialVersionUID = 1L; 14 32 15 public void setExpectedValue(String s) { 16 expectedValue = s; 33 /** 34 * @param expectedValue 35 * The reference value which is compared to the targets text. 36 */ 37 public void setExpectedValue(String expectedValue) { 38 this.expectedValue = expectedValue; 17 39 } 18 40 19 public void setTarget(String s) { 20 target = s; 41 /** 42 * @param target 43 * The window which text is compared to expectedValue. 44 */ 45 public void setTarget(String target) { 46 this.target = target; 21 47 } 22 48 49 /** 50 * Returns the string that has to be written to the replay file. 51 */ 23 52 public String getReplay() { 24 53 25 54 expectedValue = StringTools.xmlEntityReplacement(expectedValue); 26 55 27 56 StringBuilder currentMsgStr = new StringBuilder(400); 28 currentMsgStr.append(" <textEquals expectedValue=\"" + expectedValue + "\">"); 57 currentMsgStr.append(" <textEquals expectedValue=\"" + expectedValue 58 + "\">"); 29 59 currentMsgStr.append(StringTools.ENDLINE); 30 60 currentMsgStr.append("<target>"); … … 39 69 } 40 70 41 71 /** 72 * Returns the target window. 73 */ 42 74 public String getTarget() { 43 75 return target;
Note: See TracChangeset
for help on using the changeset viewer.