- Timestamp:
- 09/27/11 20:12:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/efg/data/EFGReplayable.java
r197 r204 2 2 3 3 import de.ugoe.cs.eventbench.data.IReplayable; 4 import de.ugoe.cs.util.StringTools; 4 5 6 /** 7 * <p> 8 * {@link IReplayable} used to generate test cases for the GUITAR suite. 9 * </p> 10 * 11 * @author Steffen Herbold 12 * @version 1.0 13 */ 5 14 public class EFGReplayable implements IReplayable { 15 16 /** 17 * <p> 18 * EventId in the EFG and GUI files. 19 * </p> 20 */ 21 String eventId; 6 22 7 23 /** … … 12 28 private static final long serialVersionUID = 1L; 13 29 30 /** 31 * <p> 32 * Constructor. Creates a new {@link EFGReplayable}. 33 * </p> 34 * 35 * @param eventId 36 */ 37 public EFGReplayable(String eventId) { 38 this.eventId = eventId; 39 } 40 41 /* 42 * (non-Javadoc) 43 * 44 * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() 45 */ 14 46 @Override 15 47 public String getReplay() { 16 // TODO Auto-generated method stub 17 return null; 48 StringBuilder replay = new StringBuilder(); 49 replay.append("<Step>" + StringTools.ENDLINE); 50 replay.append("<EventId>" + eventId + "</EventId>" + StringTools.ENDLINE); 51 replay.append("<ReachingStep>false</ReachingStep>" + StringTools.ENDLINE); 52 replay.append("</Step>" + StringTools.ENDLINE); 53 return replay.toString(); 18 54 } 19 55 56 /* 57 * (non-Javadoc) 58 * 59 * @see de.ugoe.cs.eventbench.data.IReplayable#getTarget() 60 */ 20 61 @Override 21 62 public String getTarget() { 22 // TODO Auto-generated method stub 23 return null; 63 return null; // target indirectly included in replay through the eventId 24 64 } 25 65
Note: See TracChangeset
for help on using the changeset viewer.