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