Last change
on this file since 150 was
150,
checked in by jhall, 13 years ago
|
Minor bugfixes
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.0 KB
|
Rev | Line | |
---|
[136] | 1 | package de.ugoe.cs.eventbench.assertions;
|
---|
| 2 |
|
---|
| 3 | import de.ugoe.cs.eventbench.data.IReplayable;
|
---|
| 4 | import de.ugoe.cs.util.StringTools;
|
---|
| 5 |
|
---|
| 6 | public class FileEqualsReplay implements IReplayable {
|
---|
[146] | 7 |
|
---|
[136] | 8 | String actualFile = null;
|
---|
| 9 | String expectedFile = null;
|
---|
| 10 | /**
|
---|
| 11 | * Id for object serialization.
|
---|
| 12 | */
|
---|
| 13 | private static final long serialVersionUID = 1L;
|
---|
[146] | 14 |
|
---|
[136] | 15 | public void setActualFile(String s) {
|
---|
| 16 | actualFile = s;
|
---|
| 17 | }
|
---|
[146] | 18 |
|
---|
[136] | 19 | public void setExpectedFile(String s) {
|
---|
| 20 | expectedFile = s;
|
---|
| 21 | }
|
---|
[146] | 22 |
|
---|
| 23 | public String getReplay() {
|
---|
| 24 |
|
---|
[150] | 25 | actualFile = StringTools.xmlEntityReplacement(actualFile);
|
---|
| 26 | expectedFile = StringTools.xmlEntityReplacement(expectedFile);
|
---|
[149] | 27 |
|
---|
[136] | 28 | StringBuilder currentMsgStr = new StringBuilder(800);
|
---|
[146] | 29 | currentMsgStr.append(" <fileEquals ");
|
---|
| 30 | currentMsgStr.append("actualFile=\"" + actualFile + "\" ");
|
---|
| 31 | currentMsgStr.append("expectedFile=\"" + expectedFile + "\"/>");
|
---|
[136] | 32 | currentMsgStr.append(StringTools.ENDLINE);
|
---|
| 33 | return currentMsgStr.toString();
|
---|
| 34 | }
|
---|
| 35 |
|
---|
[146] | 36 | public String getTarget() {
|
---|
| 37 | return "targetNotUsed";
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[136] | 40 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.