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
|
Line | |
---|
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 {
|
---|
7 |
|
---|
8 | String actualFile = null;
|
---|
9 | String expectedFile = null;
|
---|
10 | /**
|
---|
11 | * Id for object serialization.
|
---|
12 | */
|
---|
13 | private static final long serialVersionUID = 1L;
|
---|
14 |
|
---|
15 | public void setActualFile(String s) {
|
---|
16 | actualFile = s;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public void setExpectedFile(String s) {
|
---|
20 | expectedFile = s;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public String getReplay() {
|
---|
24 |
|
---|
25 | actualFile = StringTools.xmlEntityReplacement(actualFile);
|
---|
26 | expectedFile = StringTools.xmlEntityReplacement(expectedFile);
|
---|
27 |
|
---|
28 | StringBuilder currentMsgStr = new StringBuilder(800);
|
---|
29 | currentMsgStr.append(" <fileEquals ");
|
---|
30 | currentMsgStr.append("actualFile=\"" + actualFile + "\" ");
|
---|
31 | currentMsgStr.append("expectedFile=\"" + expectedFile + "\"/>");
|
---|
32 | currentMsgStr.append(StringTools.ENDLINE);
|
---|
33 | return currentMsgStr.toString();
|
---|
34 | }
|
---|
35 |
|
---|
36 | public String getTarget() {
|
---|
37 | return "targetNotUsed";
|
---|
38 | }
|
---|
39 |
|
---|
40 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.