Last change
on this file since 583 was
560,
checked in by sherbold, 12 years ago
|
- rewrote replay decorator handling
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.7 KB
|
Line | |
---|
1 |
|
---|
2 | package de.ugoe.cs.quest.plugin.guitar.eventcore;
|
---|
3 |
|
---|
4 | import de.ugoe.cs.quest.IReplayDecorator;
|
---|
5 | import de.ugoe.cs.quest.eventcore.IReplayable;
|
---|
6 | import de.ugoe.cs.quest.plugin.guitar.EFGReplayDecorator;
|
---|
7 | import de.ugoe.cs.util.StringTools;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * <p>
|
---|
11 | * {@link IReplayable} used to generate test cases for the GUITAR suite.
|
---|
12 | * </p>
|
---|
13 | *
|
---|
14 | * @author Steffen Herbold
|
---|
15 | * @version 1.0
|
---|
16 | */
|
---|
17 | public class GUITARReplayable implements IReplayable {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * <p>
|
---|
21 | * EventId in the EFG and GUI files.
|
---|
22 | * </p>
|
---|
23 | */
|
---|
24 | String eventId;
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * <p>
|
---|
28 | * Id for object serialization.
|
---|
29 | * </p>
|
---|
30 | */
|
---|
31 | private static final long serialVersionUID = 1L;
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * <p>
|
---|
35 | * Constructor. Creates a new {@link GUITARReplayable}.
|
---|
36 | * </p>
|
---|
37 | *
|
---|
38 | * @param eventId
|
---|
39 | */
|
---|
40 | public GUITARReplayable(String eventId) {
|
---|
41 | this.eventId = eventId;
|
---|
42 | }
|
---|
43 |
|
---|
44 | /*
|
---|
45 | * (non-Javadoc)
|
---|
46 | *
|
---|
47 | * @see de.ugoe.cs.quest.eventcore.IReplayable#getReplay()
|
---|
48 | */
|
---|
49 | @Override
|
---|
50 | public String getReplay() {
|
---|
51 | StringBuilder replay = new StringBuilder();
|
---|
52 | replay.append("<Step>" + StringTools.ENDLINE);
|
---|
53 | replay.append("<EventId>" + eventId + "</EventId>" + StringTools.ENDLINE);
|
---|
54 | replay.append("<ReachingStep>false</ReachingStep>" + StringTools.ENDLINE);
|
---|
55 | replay.append("</Step>" + StringTools.ENDLINE);
|
---|
56 | return replay.toString();
|
---|
57 | }
|
---|
58 |
|
---|
59 | /*
|
---|
60 | * (non-Javadoc)
|
---|
61 | *
|
---|
62 | * @see de.ugoe.cs.quest.eventcore.IReplayable#getDecorator()
|
---|
63 | */
|
---|
64 | @Override
|
---|
65 | public IReplayDecorator getDecorator() {
|
---|
66 | return EFGReplayDecorator.getInstance();
|
---|
67 | }
|
---|
68 |
|
---|
69 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.